derekf pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ef9bd4183196b60e28b54d15eebdcc7428242d9f

commit ef9bd4183196b60e28b54d15eebdcc7428242d9f
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Jul 19 13:05:53 2017 -0500

    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

-- 


Reply via email to