Mesa (main): mesa: (correctly) flush more in _mesa_make_current
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jul 15 15:26:44 UTC 2021
Module: Mesa
Branch: main
Commit: 17e62a3c23f68df802bcbfdab947dff4226fa281
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=17e62a3c23f68df802bcbfdab947dff4226fa281
Author: Adam Jackson <ajax at redhat.com>
Date: Thu Jun 10 10:55:17 2021 -0400
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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11423>
---
src/mesa/main/context.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 30f363390d4..51f4c8bc865 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -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 ==
More information about the mesa-commit
mailing list