Revert "glx: Generate fewer errors in MakeContextCurrent"

This reverts commit fb3e55f898.

This commit was identified as causing the piglit
glx-create-context-current-no-framebuffer test to crash, (where, previously,
it merely failed without crashing).
This commit is contained in:
Carl Worth 2013-10-17 11:30:26 -07:00
parent bf9be81b47
commit 82d5b5e20f

View file

@ -231,6 +231,16 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
return GL_FALSE;
}
if (gc == NULL && (draw != None || read != None)) {
__glXGenerateError(dpy, (draw != None) ? draw : read,
BadMatch, X_GLXMakeContextCurrent);
return False;
}
if (gc != NULL && (draw == None || read == None)) {
__glXGenerateError(dpy, None, BadMatch, X_GLXMakeContextCurrent);
return False;
}
_glapi_check_multithread();
__glXLock();