summaryrefslogtreecommitdiff
path: root/GL/glx/glxext.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2006-11-16 02:18:03 +0200
committerGeorge Sapountzis <gsap7@yahoo.gr>2006-11-16 22:14:53 +0200
commitf17e3c34dfd1f1418440bdebf45764e4dbf550f0 (patch)
tree496a289488e8a48a708ac3df3c19f9c64ff6d7f3 /GL/glx/glxext.c
parentae3c9ad4abe66784d7ee474455003d2745699286 (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().
Diffstat (limited to 'GL/glx/glxext.c')
-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();