From f984e759eb409762ea8c7c5d75f6051740373e16 Mon Sep 17 00:00:00 2001 From: edwloef Date: Sun, 22 Sep 2024 12:21:57 +0200 Subject: always increment solid/gradient count in wgpu mesh rendering --- wgpu/src/triangle.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'wgpu') diff --git a/wgpu/src/triangle.rs b/wgpu/src/triangle.rs index 3d0869e7..fb858c10 100644 --- a/wgpu/src/triangle.rs +++ b/wgpu/src/triangle.rs @@ -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; }; -- cgit