diff --git a/glx/glxext.c b/glx/glxext.c index c2de3cedd..978d27112 100644 --- a/glx/glxext.c +++ b/glx/glxext.c @@ -133,6 +133,9 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid) next = c->next; if (c->currentClient && (c->drawPriv == glxPriv || c->readPriv == glxPriv)) { + /* flush the context */ + glFlush(); + c->hasUnflushedCommands = GL_FALSE; /* just force a re-bind the next time through */ (*c->loseCurrent) (c); lastGLContext = NULL;