Skip to content

Commit 424d4d2

Browse files
committed
A hack to work around minimising still being broken (#4481)
# Objective - #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`.
1 parent 0d2b527 commit 424d4d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bevy_pbr/src/light.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ impl Clusters {
391391
}
392392
fn clear(&mut self) {
393393
self.tile_size = UVec2::ONE;
394-
self.dimensions = UVec3::ONE;
394+
self.dimensions = UVec3::ZERO;
395395
self.near = 0.0;
396396
self.far = 0.0;
397397
self.lights.clear();

0 commit comments

Comments
 (0)