Commit d6a6b88f authored by Massimo Del Fedele's avatar Massimo Del Fedele Committed by Alexandre Julliard

opengl32: glGetString() should return NULL on NULL context.

parent 0f9484a1
......@@ -632,6 +632,11 @@ const GLubyte * WINAPI wine_glGetString( GLenum name )
const GLubyte *ret;
const char* GL_Extensions = NULL;
/* this is for buggy nvidia driver, crashing if called from a different
thread with no context */
if(wglGetCurrentContext() == NULL)
return NULL;
if (GL_EXTENSIONS != name) {
ENTER_GL();
ret = glGetString(name);
......
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