[PATCH 0/1] MR9319: winex11.drv: Fix an inverted condition in x11drv_surface_swap().
From: Elizabeth Figura <zfigura(a)codeweavers.com> Spotted by Henri Verbeet. Fixes: df00a5c097cd9cb292952f5307ee96d96fbc58b4 --- dlls/winex11.drv/opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index c4cc2b1fe1f..019590964ba 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -1453,7 +1453,7 @@ static BOOL x11drv_surface_swap( struct opengl_drawable *base ) TRACE( "drawable %s\n", debugstr_opengl_drawable( base ) ); - if ((offscreen = InterlockedCompareExchange( &base->client->offscreen, 0, 0 )) || + if (!(offscreen = InterlockedCompareExchange( &base->client->offscreen, 0, 0 )) || !ctx || !pglXSwapBuffersMscOML) pglXSwapBuffers( gdi_display, gl->drawable ); else { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9319
This merge request was approved by Rémi Bernon. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/9319
participants (3)
-
Elizabeth Figura -
Elizabeth Figura (@zfigura) -
Rémi Bernon