mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
mesa: (correctly) flush more in _mesa_make_current
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>
This commit is contained in:
parent
34342cce89
commit
17e62a3c23
1 changed files with 0 additions and 1 deletions
|
|
@ -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 ==
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue