mirror of
https://github.com/brl/mutter.git
synced 2024-12-27 05:12:15 +00:00
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
This commit is contained in:
parent
a2551dfa60
commit
97dcb108d0
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user