mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
41bf0181b9
Previously we were setting the FBO's viewport to be the same dimensions as the stage itself for compatibility. This works for most cases, but not if the actor is larger than the stage. In that case it could cause excessive clipping if the actor's transformed screen position was negative, which is seen in https://gitlab.gnome.org/GNOME/gnome-shell/issues/2087 Also if a small actor paints to its negative dimensions (like a box-shadow) then we might be missing those pixels on the left or top, even though they're inside the paint volume. Now we set the viewport dimensions to match the area we're actually rendering so the FBO contents are never over or under clipped. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3068 Although if you try using shadows larger than that (like in gnome-shell#1090) then you will also need gnome-shell!1417. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1053> |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |