Fix T93874: Cycles crash with fast GI approximation

This commit is contained in:
Brecht Van Lommel 2021-12-09 17:46:21 +01:00 committed by Philipp Oeser
parent 5beadc31d6
commit 55ecdf3195
Notes: blender-bot 2023-02-13 16:59:20 +01:00
Referenced by issue #93874, Fast GI Approximation Render Crash
Referenced by issue #93479, 3.0 Potential candidates for corrective releases
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ ccl_device_inline void path_state_init_integrator(KernelGlobals kg,
INTEGRATOR_STATE_WRITE(state, path, continuation_probability) = 1.0f;
INTEGRATOR_STATE_WRITE(state, path, throughput) = make_float3(1.0f, 1.0f, 1.0f);
INTEGRATOR_STATE_WRITE(state, isect, object) = OBJECT_NONE;
INTEGRATOR_STATE_WRITE(state, isect, prim) = PRIM_NONE;
if (kernel_data.kernel_features & KERNEL_FEATURE_VOLUME) {
INTEGRATOR_STATE_ARRAY_WRITE(state, volume_stack, 0, object) = OBJECT_NONE;
INTEGRATOR_STATE_ARRAY_WRITE(