Tomas Carnecky : x11drv: Allow users to preload an OpenGL library.
Module: wine Branch: refs/heads/master Commit: 7499cabb28441adb862cbeb3c89fe4832224ac65 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=7499cabb28441adb862cbeb3... Author: Tomas Carnecky <tom(a)dbservice.com> Date: Fri Dec 16 12:37:34 2005 +0100 x11drv: Allow users to preload an OpenGL library. --- dlls/x11drv/opengl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/x11drv/opengl.c b/dlls/x11drv/opengl.c index 7660b0e..3a400c1 100644 --- a/dlls/x11drv/opengl.c +++ b/dlls/x11drv/opengl.c @@ -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)
participants (1)
-
Alexandre Julliard