diff options
author | William Deurwaarder <william.git@xs4all.nl> | 2021-10-12 23:43:34 +0200 |
---|---|---|
committer | William Deurwaarder <william.git@xs4all.nl> | 2021-10-12 23:43:34 +0200 |
commit | f3f64389ca4b1f55ddc161cedbae02ed746c1632 (patch) | |
tree | e90caebe01cd6eae11359cbbc89f4806e499975f /thirdparty/libvpx/vp9/vp9_dx_iface.h | |
parent | 6f1d2133bb2b77048bf13a8180f57bff1a747226 (diff) |
GPULightmapper: prevent loop with max iterations
In case the calculation of the delta contained infinity values (division by
zero), than later the calculation of the next cell failed as the infinity value
was multiplied by zero which resulted in a nan. The nan-value caused that the
next cell was equal to the current cell which resulted in an end-less loop,
which only terminates by the maximum iterations protection.
This is solved by replacing infinity with grid_size which acts as infinity.
Diffstat (limited to 'thirdparty/libvpx/vp9/vp9_dx_iface.h')
0 files changed, 0 insertions, 0 deletions