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
From: Rémi Bernon rbernon@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