Commit 22884b0b authored by Robert Mader's avatar Robert Mader Committed by Georges Basile Stavracas Neto

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.

!504
parent d2415da0
Pipeline #75986 passed with stages
in 3 minutes and 58 seconds
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment