aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@linux.intel.com>2013-03-20 18:00:31 (GMT)
committerRafael Antognolli <rafael.antognolli@linux.intel.com>2013-03-20 18:16:10 (GMT)
commit57208fd2a3d28f8ae8ac65108f2afd0c0a94e391 (patch)
tree6a546d9acce00d68d521031e8a4688ab4f3baaf6
parentHush clang warnings for EINA_INLIST_FOREACH_SAFE (diff)
evas/wayland_egl: Fall back to dlsym if eglGetProcAddress fails.
At least for wayland, eglGetProcAddress seems to fail to get the eglQueryString symbol. Not sure if it's the right fix, but brings wayland_egl back to working again. Fixes #2301.
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_engine.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c
index 0281beb..85d4a16 100644
--- a/src/modules/evas/engines/wayland_egl/evas_engine.c
+++ b/src/modules/evas/engines/wayland_egl/evas_engine.c
@@ -276,9 +276,8 @@ _sym_init(void)
#define FINDSYM(dst, sym, typ) \
if (glsym_eglGetProcAddress) { \
if (!dst) dst = (typ)glsym_eglGetProcAddress(sym); \
- } else { \
- if (!dst) dst = (typ)dlsym(RTLD_DEFAULT, sym); \
- }
+ } \
+ if (!dst) dst = (typ)dlsym(RTLD_DEFAULT, sym);
FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddress", glsym_func_eng_fn);
FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddressEXT", glsym_func_eng_fn);