[PATCH 0/1] MR8673: win32u: Also flush the GL drawable if the client surface is offscreen.
Making sure the driver will present the surface for games drawing to the front buffer. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58515 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58534 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8673
From: Rémi Bernon <rbernon(a)codeweavers.com> Making sure the driver will present the surface for games drawing to the front buffer. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58515 Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=58534 --- dlls/win32u/opengl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/win32u/opengl.c b/dlls/win32u/opengl.c index f27143f3357..2b7fbd8dac6 100644 --- a/dlls/win32u/opengl.c +++ b/dlls/win32u/opengl.c @@ -213,7 +213,8 @@ static void opengl_drawable_flush( struct opengl_drawable *drawable, int interva flags = GL_FLUSH_INTERVAL; } - if (flags) drawable->funcs->flush( drawable, flags ); + if (flags || InterlockedCompareExchange( &drawable->client->offscreen, 0, 0 )) + drawable->funcs->flush( drawable, flags ); } #ifdef SONAME_LIBEGL -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8673
participants (1)
-
Rémi Bernon