summaryrefslogtreecommitdiff
path: root/glx/glxext.c
diff options
context:
space:
mode:
Diffstat (limited to 'glx/glxext.c')
-rw-r--r--glx/glxext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glx/glxext.c b/glx/glxext.c
index bc7fe8217..3aba6996f 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -139,6 +139,7 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid)
for (c = glxAllContexts; c; c = next) {
next = c->next;
if (c->isCurrent && (c->drawPriv == glxPriv || c->readPriv == glxPriv)) {
+ FlushContext(c);
(*c->loseCurrent) (c);
c->isCurrent = GL_FALSE;
if (c == __glXLastContext)