winex11.drv: give a better warning for broken drivers on 64-bit OS's

Austin English austinenglish at gmail.com
Sun Dec 16 14:31:11 CST 2012


-- 
-Austin
-------------- next part --------------
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 8dc6281..4b00cea 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -465,6 +465,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
     if(pglXMakeCurrent(gdi_display, win, ctx) == 0)
     {
         ERR_(winediag)( "Unable to activate OpenGL context, most likely your OpenGL drivers haven't been installed correctly\n" );
+#ifdef _WIN64
+        ERR_(winediag)( "You are using a 64-bit OS, make sure you have 32-bit libraries installed for your graphics driver\n" );
+#endif
         goto done;
     }
     gl_renderer = (const char *)opengl_funcs.gl.p_glGetString(GL_RENDERER);
@@ -509,6 +512,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
             ERR_(winediag)("Direct rendering is disabled, most likely your OpenGL drivers "
                            "haven't been installed correctly (using GL renderer %s, version %s).\n",
                            debugstr_a(gl_renderer), debugstr_a(WineGLInfo.glVersion));
+#ifdef _WIN64
+            ERR_(winediag)( "You are using a 64-bit OS, make sure you have 32-bit libraries installed for your graphics driver\n");
+#endif
     }
     else
     {
@@ -525,6 +531,9 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
             ERR_(winediag)("The Mesa OpenGL driver is using software rendering, most likely your OpenGL "
                            "drivers haven't been installed correctly (using GL renderer %s, version %s).\n",
                            debugstr_a(gl_renderer), debugstr_a(WineGLInfo.glVersion));
+#ifdef _WIN64
+            ERR_(winediag)( "You are using a 64-bit OS, make sure you have 32-bit libraries installed for your graphics driver\n");
+#endif
     }
     ret = TRUE;
 


More information about the wine-patches mailing list