summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-11-16 02:18:03 +0200
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-11-30 20:17:27 +0200
commit782166ac22ee854a4ccd9d00499085b92fb09a23 (patch)
treef43f944ce4a57693d5b3f2b296c7fbb9bd73d067 /GL
parent3d513382d1d40019dda1e7b29b75ff04c7a1cae1 (diff)
Fix GL context destruction with AIGLX.
The logic for freeing GL contexts introduced by "Fix AIGLX VT switching." is inverted. As it is now, GL context destruction is deferred for glxDRIEnterVT(). (cherry picked from f17e3c34dfd1f1418440bdebf45764e4dbf550f0 commit)
Diffstat (limited to 'GL')
-rw-r--r--GL/glx/glxext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/GL/glx/glxext.c b/GL/glx/glxext.c
index 11fb7fcaf..1f6c7f376 100644
--- a/GL/glx/glxext.c
+++ b/GL/glx/glxext.c
@@ -237,7 +237,7 @@ GLboolean __glXFreeContext(__GLXcontext *cx)
* __glXDispatch() or as a callback from the resource manager. In
* the latter case we need to lift the DRI lock manually. */
- if (glxBlockClients) {
+ if (!glxBlockClients) {
__glXleaveServer();
cx->destroy(cx);
__glXenterServer();