[clutter/clutter-1.18] ClutterStageCogl: Clip in the right coordinate system



commit 97dcb108d09b1b40a0444ab09a6e659287d52d0c
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Dec 5 07:57:17 2013 -0500

    ClutterStageCogl: Clip in the right coordinate system
    
    Our clip coordinates are relative to the stage, not model-view
    transformed. cogl_framebuffer_push_rectangle_clip() was accidentally
    used instead of cogl_framebuffer_push_scissor_clip() when porting
    to the framebuffer clip API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719900

 clutter/cogl/clutter-stage-cogl.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c
index fd91491..6dc3fab 100644
--- a/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/cogl/clutter-stage-cogl.c
@@ -529,11 +529,11 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
 
       stage_cogl->using_clipped_redraw = TRUE;
 
-      cogl_framebuffer_push_rectangle_clip (fb,
-                                            clip_region->x * window_scale,
-                                            clip_region->y * window_scale,
-                                            clip_region->width * window_scale,
-                                            clip_region->height * window_scale);
+      cogl_framebuffer_push_scissor_clip (fb,
+                                          clip_region->x * window_scale,
+                                          clip_region->y * window_scale,
+                                          clip_region->width * window_scale,
+                                          clip_region->height * window_scale);
       _clutter_stage_do_paint (CLUTTER_STAGE (wrapper), clip_region);
       cogl_framebuffer_pop_clip (fb);
 


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