[clutter/clutter-1.22] clutter-stage-cogl: Match EGL's behavior of eglSwapBuffersWithDamage



commit 0b6a643e0d1a03d95fc0d9a230fa4ff0320142cc
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Apr 28 16:05:55 2015 -0700

    clutter-stage-cogl: Match EGL's behavior of eglSwapBuffersWithDamage
    
    -1 is explicitly an invalid value to pass to eglSwapBuffersWithDamage,
    and the specification admits as much:
    
                                                             If
        eglSwapBuffersWithDamageEXT is called and <n_rects>, is less
        than zero or <n_rects> is greater than zero but <rects> is
        NULL, EGL_BAD_PARAMETER is generated.
    
    Fix up our usage of SwapBuffersWithDamage to match the behavior in the
    EGL specification.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=745512
    
    (cherry picked from commit 21ce9bc08b72f0904c6b682341481798d05f7d8c)
    
    Signed-off-by: Emmanuele Bassi <ebassi gnome org>

 clutter/cogl/clutter-stage-cogl.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c
index 710374e..fd51e07 100644
--- a/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/cogl/clutter-stage-cogl.c
@@ -607,11 +607,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
     }
   else
     {
-      damage[0] = 0;
-      damage[1] = 0;
-      damage[2] = geom.width;
-      damage[3] = geom.height;
-      ndamage = -1;
+      ndamage = 0;
     }
 
   /* push on the screen */


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