derekf pushed a commit to branch master.

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

commit 7fd66e84d92476cd4294a82c79f5bdd43d1832a6
Author: Derek Foreman <der...@osg.samsung.com>
Date:   Wed Jul 19 11:41:32 2017 -0500

    gl_drm: de-wtf the eglGetProcAddress prototype
    
    This doesn't seem to serve any purpose other than rigorous proof that
    typecasts can make literally anything compile.
---
 src/modules/evas/engines/gl_drm/evas_engine.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c 
b/src/modules/evas/engines/gl_drm/evas_engine.c
index c691e4c67f..b15293ae45 100644
--- a/src/modules/evas/engines/gl_drm/evas_engine.c
+++ b/src/modules/evas/engines/gl_drm/evas_engine.c
@@ -36,8 +36,6 @@ static Eina_Bool dmabuf_present = EINA_FALSE;
 static int gl_wins = 0;
 
 /* local function prototype types */
-typedef void (*_eng_fn)(void);
-typedef _eng_fn (*glsym_func_eng_fn)();
 typedef void (*glsym_func_void)();
 typedef void *(*glsym_func_void_ptr)();
 typedef int (*glsym_func_int)();
@@ -73,7 +71,7 @@ Evas_GL_Preload_Render_Call 
glsym_evas_gl_preload_render_relax = NULL;
 glsym_func_void_ptr glsym_evas_gl_common_current_context_get = NULL;
 
 /* dynamic loaded local egl function pointers */
-_eng_fn (*glsym_eglGetProcAddress)(const char *a) = NULL;
+void *(*glsym_eglGetProcAddress)(const char *a) = NULL;
 EGLImageKHR  (*glsym_evas_gl_common_eglCreateImage) (EGLDisplay a, EGLContext 
b, EGLenum c, EGLClientBuffer d, const EGLAttrib *e) = NULL;
 int          (*glsym_evas_gl_common_eglDestroyImage) (EGLDisplay a, void *b) = 
NULL;
 void (*glsym_glEGLImageTargetTexture2DOES)(int a, void *b) = NULL;
@@ -196,7 +194,7 @@ gl_symbols(void)
    // Find EGL extensions
    // FIXME: whgen above eglGetDisplay() is fixed... fix the below...
 //   exts = eglQueryString(ob->egl_disp, EGL_EXTENSIONS);
-   glsym_evas_gl_symbols((void*)glsym_eglGetProcAddress, exts);
+   glsym_evas_gl_symbols(glsym_eglGetProcAddress, exts);
 
    FINDSYM(glsym_glEGLImageTargetTexture2DOES,
            "glEGLImageTargetTexture2DOES", glsym_func_void);

-- 


Reply via email to