cogl: Update latest sync fd also in cogl_onscreen_swap_region

Same as in cogl_onscreen_swap_buffers_with_damage.

Fixes: 99209958b90b ("cogl: Store latest GPU work completed sync fd")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4057>
This commit is contained in:
Michel Dänzer 2024-10-01 10:51:52 +02:00 committed by Marge Bot
parent e5c0887524
commit 0348913afa

View File

@ -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 */