mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
2ee69807b1
# Objective - Fix a potential out-of-bounds access in the `pbr_functions.wgsl` shader. ## Solution - Correctly compute the `GpuLights::directional_lights` array length. ## Comments I think this solves this comment in the code, but need someone to test it: ```rust //NOTE: When running bevy on Adreno GPU chipsets in WebGL, any value above 1 will result in a crash // when loading the wgsl "pbr_functions.wgsl" in the function apply_fog. ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |