From 1dcc2475629b7f36b3213bff2436e9e0cc12526c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 5 Dec 2003 04:43:20 +0000 Subject: [PATCH] Removed now useless call to glXQueryExtensionsString. --- dlls/opengl32/wgl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dlls/opengl32/wgl.c b/dlls/opengl32/wgl.c index 254383aaa0f..948f5085871 100644 --- a/dlls/opengl32/wgl.c +++ b/dlls/opengl32/wgl.c @@ -625,8 +625,7 @@ static BOOL process_attach(void) Window root = (Window)GetPropA( GetDesktopWindow(), "__wine_x11_whole_window" ); HMODULE mod = GetModuleHandleA( "x11drv.dll" ); void *opengl_handle; - const char *extensions = NULL; - + if (!root || !mod) { ERR("X11DRV not loaded. Cannot create default context.\n"); @@ -667,7 +666,6 @@ static BOOL process_attach(void) vis = XGetVisualInfo(default_display, VisualIDMask, &template, &num); if (vis != NULL) default_cx = glXCreateContext(default_display, vis, 0, GL_TRUE); if (default_cx != NULL) glXMakeCurrent(default_display, root, default_cx); - extensions = glXQueryExtensionsString(default_display, DefaultScreen(default_display)); XFree(vis); LEAVE_GL();