Commit ddada675 authored by Joshua Beck's avatar Joshua Beck Committed by Alexandre Julliard

winex11: Improved error handling in pglXMakeCurrent() call.

parent 6771ed40
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment