summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript.cpp
diff options
context:
space:
mode:
authorMatias N. Goldberg <dark_sylinc@yahoo.com.ar>2023-08-06 23:21:58 -0300
committerMatias N. Goldberg <dark_sylinc@yahoo.com.ar>2023-08-06 23:21:58 -0300
commite783e32108520a4d5b866fc0b28f23cedc3c74f6 (patch)
tree2e4389ef0820f01ac969c4fe213693778934d4be /modules/gdscript/gdscript.cpp
parent16a93563bfd3b02ca0a8f6df2026f3a3217f5571 (diff)
downloadredot-engine-e783e32108520a4d5b866fc0b28f23cedc3c74f6.tar.gz
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 #80286
Diffstat (limited to 'modules/gdscript/gdscript.cpp')
0 files changed, 0 insertions, 0 deletions