clutter/cogl: Ensure to paint full view if there's no buffer age support

This was falling back to painting an empty area, which is not what we want.

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

View File

@ -771,8 +771,9 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
} }
else else
{ {
fb_clip_region = cairo_region_create (); cairo_rectangle_int_t rect = { 0, 0, view_rect.width, view_rect.height };
redraw_clip = cairo_region_reference (fb_clip_region); fb_clip_region = cairo_region_create_rectangle (&rect);
redraw_clip = cairo_region_copy (fb_clip_region);
} }
if (may_use_clipped_redraw && if (may_use_clipped_redraw &&