modified: dlls/winex11.drv/opengl.c
Joshua Beck
jxb091000 at utdallas.edu
Thu Mar 24 01:50:33 CDT 2011
---
dlls/winex11.drv/opengl.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index a9cc178..b74bc0a 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -344,8 +344,11 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
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
--------------010101030301090909000805--
More information about the wine-patches
mailing list