From ef9bd4183196b60e28b54d15eebdcc7428242d9f Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 19 Jul 2017 13:05:53 -0500 Subject: [PATCH] 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. --- src/modules/evas/engines/gl_common/evas_gl_context.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_context.c b/src/modules/evas/engines/gl_common/evas_gl_context.c index 2ead3877d4..c3534a5149 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_context.c +++ b/src/modules/evas/engines/gl_common/evas_gl_context.c @@ -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