x11drv: Allow users to preload an OpenGL library.

This commit is contained in:
Tomas Carnecky 2005-12-16 12:37:34 +01:00 committed by Alexandre Julliard
parent 4c53092566
commit 7499cabb28
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ static BOOL has_opengl(void)
opengl_handle = wine_dlopen(SONAME_LIBGL, RTLD_NOW|RTLD_GLOBAL, NULL, 0);
if (opengl_handle == NULL) return FALSE;
#define LOAD_FUNCPTR(f) if((p##f = wine_dlsym(opengl_handle, #f, NULL, 0)) == NULL) goto sym_not_found;
#define LOAD_FUNCPTR(f) if((p##f = wine_dlsym(RTLD_DEFAULT, #f, NULL, 0)) == NULL) goto sym_not_found;
LOAD_FUNCPTR(glGetError)
LOAD_FUNCPTR(glXChooseVisual)
LOAD_FUNCPTR(glXGetConfig)