[PATCH xserver 5/7] glx: Don't flush an arbitrary GL context from DrawableGone

Adam Jackson ajax at redhat.com
Fri Apr 1 16:53:33 UTC 2016


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 at redhat.com>
---
 glx/glxext.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/glx/glxext.c b/glx/glxext.c
index 67ec07f..8984cc7 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -134,8 +134,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;
-- 
2.5.0



More information about the xorg-devel mailing list