clutter/cogl: Store empty clip regions for buffer age

As we do not prevent the SwapBuffers call from happening, those also
do count. Results in clip area calculations to be right for monitors
that previously did not get invalidated.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/888
This commit is contained in:
Carlos Garnacho 2019-10-25 16:32:29 +02:00 committed by Georges Basile Stavracas Neto
parent 3e5960b5a2
commit 4918893326

View File

@ -786,7 +786,7 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
swap_with_damage = FALSE;
if (has_buffer_age)
{
if (use_clipped_redraw && !clip_region_empty)
if (use_clipped_redraw)
{
int age;