summaryrefslogtreecommitdiff
path: root/glx
diff options
context:
space:
mode:
Diffstat (limited to 'glx')
-rw-r--r--glx/glxext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxext.c b/glx/glxext.c
index dcefecdac..c2c90d2d6 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -139,8 +139,8 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid)
next = c->next;
if (c->currentClient &&
(c->drawPriv == glxPriv || c->readPriv == glxPriv)) {
+ /* just force a re-bind the next time through */
(*c->loseCurrent) (c);
- c->currentClient = NULL;
if (c == __glXLastContext)
__glXFlushContextCache();
}