From f17e3c34dfd1f1418440bdebf45764e4dbf550f0 Mon Sep 17 00:00:00 2001 From: George Sapountzis Date: Thu, 16 Nov 2006 02:18:03 +0200 Subject: [PATCH] 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(). --- GL/glx/glxext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();