gl_common: extsn is no longer unused

Also, we should throw an error when it's NULL, since it's important
for finding symbols for extended egl/gl.
This commit is contained in:
Derek Foreman 2017-07-19 13:05:53 -05:00
parent 0255f14dc2
commit ef9bd41831
1 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,7 @@ evas_gl_common_eglDestroyImage(EGLDisplay dpy, void *im)
/* FIXME: return error if a required symbol was not found */
EAPI void
evas_gl_symbols(void *(*GetProcAddress)(const char *name), const char *extsn EINA_UNUSED)
evas_gl_symbols(void *(*GetProcAddress)(const char *name), const char *extsn)
{
int failed = 0, num = 0;
const char *exts = NULL;
@ -169,6 +169,8 @@ evas_gl_symbols(void *(*GetProcAddress)(const char *name), const char *extsn EIN
static int done = 0;
if (done) return;
if (!extsn) ERR("GL extension string was empty");
/* For all extension functions, we need to match with the extension itself
* since GetProcAddress() can return a non-NULL value even when the function
* does not exist. Drivers can do a runtime mapping depending on the