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 f17e3c34df commit)
This commit is contained in:
George Sapountzis 2006-11-16 02:18:03 +02:00 committed by Daniel Stone
parent 3d513382d1
commit 782166ac22

View File

@ -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();