[mutter/wip/carlosg/empty-invalidations: 15/15] clutter/cogl: Ensure to paint full view if there's no buffer age support



commit 2e9faaf67a3f57a4211bdb504a047e5b71aa8765
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 25 16:35:29 2019 +0200

    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

 clutter/clutter/cogl/clutter-stage-cogl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 8326c6eb7..9c8f91298 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -771,8 +771,9 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
     }
   else
     {
-      fb_clip_region = cairo_region_create ();
-      redraw_clip = cairo_region_reference (fb_clip_region);
+      cairo_rectangle_int_t rect = { 0, 0, view_rect.width, view_rect.height };
+      fb_clip_region = cairo_region_create_rectangle (&rect);
+      redraw_clip = cairo_region_copy (fb_clip_region);
     }
 
   if (may_use_clipped_redraw &&


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]