Skip to content

Commit

Permalink
A hack to work around minimising still being broken (bevyengine#4481)
Browse files Browse the repository at this point in the history
# Objective

- bevyengine#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`.
  • Loading branch information
DJMcNab committed Apr 15, 2022
1 parent 0d2b527 commit 424d4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_pbr/src/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 424d4d2

Please sign in to comment.