diff options
author | Sebastian Krzyszkowiak <dos@dosowisko.net> | 2022-11-05 21:28:14 +0100 |
---|---|---|
committer | Robert Mader <robert.mader@posteo.de> | 2022-12-03 09:37:38 +0000 |
commit | f186b4a6ea1b5bbf7f911d9125c944e1c104cffd (patch) | |
tree | 4b2e62a1943f339792e9d7ef7e7dfeb955e60312 | |
parent | c880f5e3e8db0355c09b695bf8c9cd5c09d1dd2f (diff) | |
download | mutter-f186b4a6ea1b5bbf7f911d9125c944e1c104cffd.tar.gz |
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2689>
(cherry picked from commit e331e38a191a36faaa5bb049157ab77f94fd7654)
-rw-r--r-- | src/compositor/meta-shaped-texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index 34fec6852..a1f4ce57c 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -615,6 +615,7 @@ set_cogl_texture (MetaShapedTexture *stex, { stex->tex_width = width; stex->tex_height = height; + meta_shaped_texture_reset_pipelines (stex); update_size (stex); } |