mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 08:30:11 +01:00
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>
This commit is contained in:
parent
66e8eaa456
commit
307c124d6b
1 changed files with 1 additions and 1 deletions
|
|
@ -626,7 +626,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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue