From 424d4d26f1ec53a443dea5e9c0afbc1d3e74a8f4 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Fri, 15 Apr 2022 11:22:48 +0000 Subject: [PATCH] A hack to work around minimising still being broken (#4481) # Objective - https://github.com/bevyengine/bevy/pull/4098 still hasn't fixed minimisation on Windows. - `Clusters.lights` is assumed to have the number of items given by the product of `Clusters.dimensions`'s axes. ## Solution - Make that true in `clear`. --- crates/bevy_pbr/src/light.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/light.rs b/crates/bevy_pbr/src/light.rs index 7d87a76e21fc2..3b33909f2f29c 100644 --- a/crates/bevy_pbr/src/light.rs +++ b/crates/bevy_pbr/src/light.rs @@ -391,7 +391,7 @@ impl Clusters { } fn clear(&mut self) { self.tile_size = UVec2::ONE; - self.dimensions = UVec3::ONE; + self.dimensions = UVec3::ZERO; self.near = 0.0; self.far = 0.0; self.lights.clear();