diff options
author | Derek Foreman <derekf@osg.samsung.com> | 2016-12-07 16:39:17 -0600 |
---|---|---|
committer | Derek Foreman <derekf@osg.samsung.com> | 2016-12-07 16:39:17 -0600 |
commit | cef41ae70a1c11565e1016debf6ce24ca259498d (patch) | |
tree | 9338c8ec72060fb7c9e8d9bb3187d03bee9931ef /src/modules | |
parent | 661e44c38d4dc9fd8c82fb3b49189ae3bebae0bf (diff) | |
download | efl-cef41ae70a1c11565e1016debf6ce24ca259498d.tar.gz |
gl_drm: Query eglGetProcAddress with dlsym
eglGetProcAddress should be queried with dlsym unconditionally. What we
had could query it with other extended forms of eglGetProcAddress, which
is probably not what anyone wants.
Also, throwing away the weird extended forms because there's a good chance
our other gl bits don't run on any stacks that don't support normal
eglGetProcAddress.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/evas/engines/gl_drm/evas_engine.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/modules/evas/engines/gl_drm/evas_engine.c b/src/modules/evas/engines/gl_drm/evas_engine.c index d840e2b3de..4821baa903 100644 --- a/src/modules/evas/engines/gl_drm/evas_engine.c +++ b/src/modules/evas/engines/gl_drm/evas_engine.c @@ -206,17 +206,10 @@ gl_symbols(void) LINK2GENERIC(evgl_engine_shutdown); LINK2GENERIC(evas_gl_symbols); + LINK2GENERIC(eglGetProcAddress); + #define FINDSYM(dst, sym, typ) \ - if (glsym_eglGetProcAddress) { \ - if (!dst) dst = (typ)glsym_eglGetProcAddress(sym); \ - } else { \ - if (!dst) dst = (typ)dlsym(RTLD_DEFAULT, sym); \ - } - - FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddressKHR", glsym_func_eng_fn); - FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddressEXT", glsym_func_eng_fn); - FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddressARB", glsym_func_eng_fn); - FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddress", glsym_func_eng_fn); + if (!dst) dst = (typ)glsym_eglGetProcAddress(sym); glsym_evas_gl_symbols((void*)glsym_eglGetProcAddress); |