egl_xlib: Pass RTLD_LAZY to dlopen.

dlopen manpage mandates that either RTLD_LAZY or RTLD_NOW flags must be
passed. Not doing so was causing a NULL return on debian unstable x86-64.
This commit is contained in:
José Fonseca
2009-03-24 19:18:06 +00:00
committed by Zack Rusin
parent 2085cf2462
commit 293f576db7

View File

@@ -588,7 +588,9 @@ find_supported_apis(void)
EGLint mask = 0;
void *handle;
handle = dlopen(NULL, 0);
handle = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL);
if(!handle)
return mask;
if (dlsym(handle, "st_api_OpenGL_ES1"))
mask |= EGL_OPENGL_ES_BIT;