mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05: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,7 +529,7 @@ clutter_stage_cogl_redraw (ClutterStageWindow *stage_window)
|
|||||||
|
|
||||||
stage_cogl->using_clipped_redraw = TRUE;
|
stage_cogl->using_clipped_redraw = TRUE;
|
||||||
|
|
||||||
cogl_framebuffer_push_rectangle_clip (fb,
|
cogl_framebuffer_push_scissor_clip (fb,
|
||||||
clip_region->x * window_scale,
|
clip_region->x * window_scale,
|
||||||
clip_region->y * window_scale,
|
clip_region->y * window_scale,
|
||||||
clip_region->width * window_scale,
|
clip_region->width * window_scale,
|
||||||
|
Loading…
Reference in New Issue
Block a user