Commit 1ce53bd2 authored by Daniel Skorka's avatar Daniel Skorka Committed by Alexandre Julliard

Fixed a problem using glXGetProcAddresARB with bad OpenGL libs.

parent 5525cab2
...@@ -671,12 +671,12 @@ static BOOL process_attach(void) ...@@ -671,12 +671,12 @@ static BOOL process_attach(void)
XFree(vis); XFree(vis);
LEAVE_GL(); LEAVE_GL();
if ((extensions != NULL) && (strstr(extensions, "GLX_ARB_get_proc_address"))) { opengl_handle = wine_dlopen(SONAME_LIBGL, RTLD_NOW|RTLD_GLOBAL, NULL, 0);
opengl_handle = wine_dlopen(SONAME_LIBGL, RTLD_NOW|RTLD_GLOBAL, NULL, 0); if (opengl_handle != NULL) {
if (opengl_handle != NULL) { p_glXGetProcAddressARB = wine_dlsym(opengl_handle, "glXGetProcAddressARB", NULL, 0);
p_glXGetProcAddressARB = wine_dlsym(opengl_handle, "glXGetProcAddressARB", NULL, 0); wine_dlclose(opengl_handle, NULL, 0);
wine_dlclose(opengl_handle, NULL, 0); if (p_glXGetProcAddressARB == NULL)
} TRACE("could not find glXGetProcAddressARB in libGL.\n");
} }
if (default_cx == NULL) { if (default_cx == NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment