Merge pull request #2601 from edwloef/master

always increment solid/gradient count in wgpu mesh rendering
This commit is contained in:
Héctor 2024-09-24 22:43:13 +02:00 committed by GitHub
commit faff6fb8e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,6 +505,14 @@ impl Layer {
.intersection(&(mesh.clip_bounds() * transformation))
.and_then(Rectangle::snap)
else {
match mesh {
Mesh::Solid { .. } => {
num_solids += 1;
}
Mesh::Gradient { .. } => {
num_gradients += 1;
}
}
continue;
};