Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix integer underflow when rounding up in VoxelGI
The code wanted to divide and round up: - 0 / 64 = 0 - 63 / 64 = 1 - 64 / 64 = 1 - 65 / 64 = 2 However when the dividend was exactly 0 it would underflow and produce 67108864 instead. This caused TDRs on empty scenes or extremely slow performance Fix godotengine#80286 (cherry picked from commit e783e32)
- Loading branch information