Skip to content

Commit

Permalink
always increment solid/gradient count in wgpu mesh rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
edwloef authored and hecrj committed Sep 24, 2024
1 parent dc38af1 commit 17d56d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wgpu/src/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 17d56d4

Please sign in to comment.