mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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:
parent
bf9be81b47
commit
82d5b5e20f
1 changed files with 10 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue