1
0
Fork 0

onscreen/native: Set frame result to IDLE on swap failure

So that swap failure messages are not also followed by:

meta_stage_native_redraw_view: runtime check failed: (!META_IS_CRTC_KMS (crtc))

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3817>
Signed-off-by: Mingi Sung <sungmg@saltyming.net>
This commit is contained in:
Daniel van Vugt 2024-07-02 17:13:07 +08:00 committed by Mingi Sung
parent 608f6d1223
commit 99bbd37b02
Signed by: sungmg
GPG key ID: 41BAFD6FFD8036C5

View file

@ -1514,6 +1514,7 @@ meta_onscreen_native_swap_buffers_with_damage (CoglOnscreen *onscreen,
swap_failed:
frame_info->flags |= COGL_FRAME_INFO_FLAG_SYMBOLIC;
meta_onscreen_native_notify_frame_complete (onscreen);
clutter_frame_set_result (frame, CLUTTER_FRAME_RESULT_IDLE);
}
gboolean