modified: dlls/winex11.drv/opengl.c like my previous patch but it now prints using ERR_(winediag) and is more like the other error messages in opengl.c made in reference to the origin

Joshua Beck jxb091000 at utdallas.edu
Wed Mar 23 22:52:41 CDT 2011


---
 dlls/winex11.drv/opengl.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index a9cc178..cc47b26 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -343,9 +343,12 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
         XMapWindow( gdi_display, win );
     else
         win = root;
-
-    pglXMakeCurrent(gdi_display, win, ctx);
-
+	
+    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" );
+        goto done;
+    }	
     WineGLInfo.glVersion = (const char *) pglGetString(GL_VERSION);
     str = (const char *) pglGetString(GL_EXTENSIONS);
     WineGLInfo.glExtensions = HeapAlloc(GetProcessHeap(), 0, strlen(str)+1);
-- 
1.7.4.1


--------------050503050206050108040409--



More information about the wine-patches mailing list