always increment solid/gradient count in wgpu mesh rendering

This commit is contained in:
edwloef 2024-09-22 12:21:57 +02:00
parent 88a2fac1f9
commit f984e759eb

View file

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