From 6bfa61a3a73d9cec284eca57bd953dfe19d2bea5 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 30 Oct 2019 14:49:17 +0100 Subject: [PATCH] Revert "clutter/cogl: Store empty clip regions for buffer age" This reverts commit 4918893326fe39dba14575a37359b040d074a5a0. This commit prevented cogl_stage_cogl_redraw_view() from skipping swap buffers entirely if the invalidation region ended up empty. This meant we were actually swapping buffers when we didn't need to. The source of the glitches was fixed more properly, so this just adds extra work. https://gitlab.gnome.org/GNOME/mutter/merge_requests/898 --- clutter/clutter/cogl/clutter-stage-cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c index 78a7d8ffc..fdc22476a 100644 --- a/clutter/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/clutter/cogl/clutter-stage-cogl.c @@ -800,7 +800,7 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window, swap_with_damage = FALSE; if (has_buffer_age) { - if (use_clipped_redraw) + if (use_clipped_redraw && !clip_region_empty) { int age;