[mutter/wip/carlosg/fix-second-monitor-invalidations: 4/4] Revert "clutter/cogl: Store empty clip regions for buffer age"



commit be4924667b8a5b4853807e0de3a8b008f4f9d2c6
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Oct 30 14:49:17 2019 +0100

    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.

 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;
 


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