diff options
author | Adam Jackson <ajax@redhat.com> | 2017-11-14 15:59:35 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-12-13 10:07:24 -0500 |
commit | ece2e82ebf597ffda44b4753aa5cb7f5e1d97480 (patch) | |
tree | 4860ff7a99fbca07124ce0c354a898b0241bc1a5 /glx | |
parent | d1a2a2757977bf2f241fd254be821bf96910b587 (diff) |
glx: Only flush indirect contexts in MakeCurrent (v2)
If the context is direct none of the GL commands were issued by this
process, the server couldn't flush them even if it wanted to.
v2: Fix embarassingly obvious boolean inversion (Michel Dänzer)
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
(cherry picked from commit 307c124d6bcfe26057767b2c0990dc9ac66b9c93)
Diffstat (limited to 'glx')
-rw-r--r-- | glx/glxcmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glx/glxcmds.c b/glx/glxcmds.c index 5873cb49c..86aab5498 100644 --- a/glx/glxcmds.c +++ b/glx/glxcmds.c @@ -631,7 +631,7 @@ DoMakeCurrent(__GLXclientState * cl, /* ** Flush the previous context if needed. */ - Bool need_flush = GL_TRUE; + Bool need_flush = !prevglxc->isDirect; #ifdef GLX_CONTEXT_RELEASE_BEHAVIOR_ARB if (prevglxc->releaseBehavior == GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB) need_flush = GL_FALSE; |