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:
Rafael Antognolli 2013-03-20 15:00:31 -03:00
parent 7f5ea979c3
commit 57208fd2a3
1 changed files with 2 additions and 3 deletions

View File

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