1
0
Fork 0

Revert "clutter/cogl: Store empty clip regions for buffer age"

This reverts commit 4918893326.

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
This commit is contained in:
Carlos Garnacho 2019-10-30 14:49:17 +01:00 committed by Georges Basile Stavracas Neto
parent cf89e4d2cd
commit 6bfa61a3a7

View file

@ -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;