diff options
author | Adam Jackson <ajax@redhat.com> | 2016-04-01 11:10:46 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-06-16 15:47:57 -0400 |
commit | 5db0daac579ac3f6f08110b7d288241b24bfcee4 (patch) | |
tree | a955c4d1176c17e80f9ce4e70fc271381bbd2fb5 | |
parent | a14c54d0c34c9955dfdb6978c385a2c17fe6b8f3 (diff) |
glx: Don't flush an arbitrary GL context from DrawableGone
The current context at this point could be anything; we've done nothing
to bind the context whose drawable is about to go away. There's not
really much point in doing the flush anyway since any rendering is going
to be thrown away, so just do nothing.
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | glx/glxext.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/glx/glxext.c b/glx/glxext.c index b22fbb885..651480fd0 100644 --- a/glx/glxext.c +++ b/glx/glxext.c @@ -114,8 +114,6 @@ DrawableGone(__GLXdrawable * glxPriv, XID xid) next = c->next; if (c->currentClient && (c->drawPriv == glxPriv || c->readPriv == glxPriv)) { - /* flush the context */ - glFlush(); /* just force a re-bind the next time through */ (*c->loseCurrent) (c); lastGLContext = NULL; |