Skip to content
Commit ef036247 authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak Committed by Robert Mader
Browse files

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 e331e38a)
parent 86bc1827
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