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.
This commit is contained in:
Derek Foreman 2017-07-19 11:41:32 -05:00
parent 855f59da8d
commit 7fd66e84d9
1 changed files with 2 additions and 4 deletions

View File

@ -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);