From 22884b0b00404d24f54214d2010014460441b10c Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Fri, 29 Mar 2019 02:20:08 +0100 Subject: [PATCH] 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 --- src/compositor/meta-shaped-texture.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 126d03d94..90a02210d 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -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); } }