Skip to content

Commit faff6fb

Browse files
authored
Merge pull request #2601 from edwloef/master
always increment solid/gradient count in wgpu mesh rendering
2 parents 142aba2 + f984e75 commit faff6fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

wgpu/src/triangle.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,14 @@ impl Layer {
505505
.intersection(&(mesh.clip_bounds() * transformation))
506506
.and_then(Rectangle::snap)
507507
else {
508+
match mesh {
509+
Mesh::Solid { .. } => {
510+
num_solids += 1;
511+
}
512+
Mesh::Gradient { .. } => {
513+
num_gradients += 1;
514+
}
515+
}
508516
continue;
509517
};
510518

0 commit comments

Comments
 (0)