From 17e62a3c23f68df802bcbfdab947dff4226fa281 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 10 Jun 2021 10:55:17 -0400 Subject: [PATCH] mesa: (correctly) flush more in _mesa_make_current MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- 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 ==