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:
Robert Mader 2019-03-29 02:20:08 +01:00 committed by Georges Basile Stavracas Neto
parent d2415da0d4
commit 22884b0b00

View File

@ -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);
}
}