Homec4science

Fixed obscure bug that only manifested itself with aggressive optimisation…

Authored by U No Hoo <roland.schregle@gmail.com> on Nov 16 2022, 01:25.

Description

Fixed obscure bug that only manifested itself with aggressive optimisation (-O3), causing preComputeContrib() to bail out with a missing LUT entries. It turned out that allocPreCompContribPmap() didn't return a value, causing the calling lu_doall() to terminate prematurely if the stack happened to contain a negative value, and leaving the rest of the LUT uninitialised.

Details

Committed
U No Hoo <roland.schregle@gmail.com>Nov 16 2022, 01:25
Pushed
GTNov 16 2022, 01:30
Parents
R10977:0984d8413741: Bugfixes to handle the case when no contribution photons were deposited for a…
Branches
Unknown
Tags
Unknown