forked from enlightenment/efl
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.
This commit is contained in:
parent
7f5ea979c3
commit
57208fd2a3
|
@ -276,9 +276,8 @@ _sym_init(void)
|
||||||
#define FINDSYM(dst, sym, typ) \
|
#define FINDSYM(dst, sym, typ) \
|
||||||
if (glsym_eglGetProcAddress) { \
|
if (glsym_eglGetProcAddress) { \
|
||||||
if (!dst) dst = (typ)glsym_eglGetProcAddress(sym); \
|
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, "eglGetProcAddress", glsym_func_eng_fn);
|
||||||
FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddressEXT", glsym_func_eng_fn);
|
FINDSYM(glsym_eglGetProcAddress, "eglGetProcAddressEXT", glsym_func_eng_fn);
|
||||||
|
|
Loading…
Reference in New Issue