1
0
Fork 0

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: 99209958b9 ("cogl: Store latest GPU work completed sync fd")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4057>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
Michel Dänzer 2024-10-01 10:51:52 +02:00 committed by Mingi Sung
parent 2ebb183629
commit e2600117ba
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5

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