x11drv: Allow users to preload an OpenGL library.
This commit is contained in:
parent
4c53092566
commit
7499cabb28
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue