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:
parent
0255f14dc2
commit
ef9bd41831
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue