diff options
Diffstat (limited to 'src/glx')
-rw-r--r-- | src/glx/x11/glxext.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 52c113da4f4..1fd2099a7f9 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -1589,7 +1589,9 @@ USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw, oldGC->currentContextTag = 0; } - + + _glapi_check_multithread(); + #ifdef GLX_DIRECT_RENDERING /* Unbind the old direct rendering context */ if (oldGC->isDirect) { @@ -1609,7 +1611,6 @@ USED static Bool MakeContextCurrent(Display *dpy, GLXDrawable draw, } } else { #endif - _glapi_check_multithread(); /* Send a glXMakeCurrent request to bind the new context. */ LockDisplay(dpy); |