[PATCH] Replace the library handle with RTDL_DEFAULT so that the user can preload a custom OpenGL library.

Tomas Carnecky tom at dbservice.com
Tue Dec 6 09:46:26 CST 2005


---

  dlls/x11drv/opengl.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

457da7b5f99f5dae7a146c9a139cb18a8be27c9a
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)
-- 
0.99.9l



More information about the wine-patches mailing list