From bc1de09cc3ddf280c8452989a6b1506f4d61ec4b Mon Sep 17 00:00:00 2001
From: marha <marha@users.sourceforge.net>
Date: Wed, 29 Dec 2010 21:49:21 +0000
Subject: Do not clear currentcontexts in DrawableGone. This is causing jedit
 not to display when opengl is enabled in java.

---
 xorg-server/glx/glxext.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xorg-server/glx/glxext.c b/xorg-server/glx/glxext.c
index af557b91a..958c5b544 100644
--- a/xorg-server/glx/glxext.c
+++ b/xorg-server/glx/glxext.c
@@ -148,7 +148,7 @@ static Bool DrawableGone(__GLXdrawable *glxPriv, XID xid)
 	    c->isCurrent = GL_FALSE;
 	    if (c == __glXLastContext)
 		__glXFlushContextCache();
-
+/*
 	    for (i = 1; i < currentMaxClients; i++) {
 		if (clients[i]) {
 		    __GLXclientState *cl = glxGetClient(clients[i]);
@@ -163,6 +163,7 @@ static Bool DrawableGone(__GLXdrawable *glxPriv, XID xid)
 		    }
 		}
 	    }
+*/
 	}
 	if (c->drawPriv == glxPriv)
 	    c->drawPriv = NULL;
-- 
cgit v1.2.3