Commit 307c124d authored by Adam Jackson's avatar Adam Jackson 💣

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's avatarAdam Jackson <>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <>
parent 66e8eaa4
......@@ -626,7 +626,7 @@ DoMakeCurrent(__GLXclientState * cl,
** Flush the previous context if needed.
Bool need_flush = GL_TRUE;
Bool need_flush = !prevglxc->isDirect;
if (prevglxc->releaseBehavior == GLX_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB)
need_flush = GL_FALSE;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment