From 97dcb108d09b1b40a0444ab09a6e659287d52d0c Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 5 Dec 2013 07:57:17 -0500 Subject: [PATCH] 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 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clutter/cogl/clutter-stage-cogl.c b/clutter/cogl/clutter-stage-cogl.c index fd91491cc..6dc3fab11 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);