From e331e38a191a36faaa5bb049157ab77f94fd7654 Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Sat, 5 Nov 2022 21:28:14 +0100 Subject: [PATCH] shaped-texture: Reset pipelines after setting a texture with new size Attaching a new buffer with a different size than the old one means that the viewport needs to be recalculated. Not doing this caused the viewport to be incorrectly applied when viewport_src_rect remained the same after attaching such buffer. Pipeline reset usually happens when applying a new viewport, but it doesn't happen when the viewport values remain the same. Part-of: --- src/compositor/meta-shaped-texture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index b3e087af9..4ebcef3c9 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -552,6 +552,7 @@ set_cogl_texture (MetaShapedTexture *stex, { stex->tex_width = width; stex->tex_height = height; + meta_shaped_texture_reset_pipelines (stex); update_size (stex); }