Skip to content

Commit

Permalink
mesa: (correctly) flush more in _mesa_make_current
Browse files Browse the repository at this point in the history
The code being removed here requires that the old context have a
window-system drawable bound to the default framebuffer as a condition
of the context-release flush. I can find no justification for
restricting flushes to contexts like this, and GL 3.0 (etc) let you make
a context current without any drawable bound.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11423>
  • Loading branch information
nwnk authored and Marge Bot committed Jul 15, 2021
1 parent 34342cc commit 17e62a3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/mesa/main/context.c
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,6 @@ _mesa_make_current( struct gl_context *newCtx,
}

if (curCtx &&
(curCtx->WinSysDrawBuffer || curCtx->WinSysReadBuffer) &&
/* make sure this context is valid for flushing */
curCtx != newCtx &&
curCtx->Const.ContextReleaseBehavior ==
Expand Down

0 comments on commit 17e62a3

Please sign in to comment.