From e2600117ba74b9b7eee364400d975d389467ed49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 1 Oct 2024 10:51:52 +0200 Subject: [PATCH] cogl: Update latest sync fd also in cogl_onscreen_swap_region Same as in cogl_onscreen_swap_buffers_with_damage. (cherry picked from commit 0348913afa7f4478ce7ed21a52e298f3054cbb91) Fixes: 99209958b90b ("cogl: Store latest GPU work completed sync fd") Part-of: Signed-off-by: Mingi Sung --- cogl/cogl/cogl-onscreen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogl/cogl/cogl-onscreen.c b/cogl/cogl/cogl-onscreen.c index 3bcb23307..57aa7f0cd 100644 --- a/cogl/cogl/cogl-onscreen.c +++ b/cogl/cogl/cogl-onscreen.c @@ -350,6 +350,8 @@ cogl_onscreen_swap_region (CoglOnscreen *onscreen, if (G_UNLIKELY (COGL_DEBUG_ENABLED (COGL_DEBUG_SYNC_FRAME))) cogl_framebuffer_finish (framebuffer); + else + _cogl_context_update_sync (context); /* This should only be called if the winsys advertises COGL_WINSYS_FEATURE_SWAP_REGION */