mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
shaped-texture: Use draw_rectangle() for full paints
This reverts a change introduced in edfe5cc3
to use `paint_clipped_rectangle()`
instead of `cogl_framebuffer_draw_rectangle()` for full paints as it
contained logic necessary for viewport src-rects. This is not longer the case.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/504
This commit is contained in:
parent
d2415da0d4
commit
22884b0b00
@ -757,11 +757,10 @@ do_paint (MetaShapedTexture *stex,
|
||||
else
|
||||
{
|
||||
/* 3) blended_tex_region is NULL. Do a full paint. */
|
||||
paint_clipped_rectangle (stex,
|
||||
fb,
|
||||
blended_pipeline,
|
||||
&tex_rect,
|
||||
&alloc);
|
||||
cogl_framebuffer_draw_rectangle (fb, blended_pipeline,
|
||||
0, 0,
|
||||
alloc.x2 - alloc.x1,
|
||||
alloc.y2 - alloc.y1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user