Perform layer::Stack::merge before rendering

This commit is contained in:
Héctor Ramón Jiménez 2025-08-18 20:51:57 +02:00
parent ab4fdaf91d
commit fb5ac7dcb0
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 35 additions and 34 deletions

View file

@ -311,7 +311,9 @@ impl Renderer {
viewport.physical_size(),
));
for layer in self.layers.iter_mut() {
self.layers.merge();
for layer in self.layers.iter() {
if physical_bounds
.intersection(&(layer.bounds * scale_factor))
.and_then(Rectangle::snap)