Fix: Uninitialized last intersection type in Cycles

It is unknown to cause any actual problems, but it makes it harder
to read certain debug logs (like the ones from valgrind).

Pull Request: https://projects.blender.org/blender/blender/pulls/132450
This commit is contained in:
Sergey Sharybin
2024-12-31 10:26:21 +01:00
committed by Sergey Sharybin
parent ba4c79feee
commit 36aa819396

View File

@@ -75,6 +75,7 @@ ccl_device_inline void path_state_init_integrator(KernelGlobals kg,
INTEGRATOR_STATE_WRITE(state, isect, object) = OBJECT_NONE;
INTEGRATOR_STATE_WRITE(state, isect, prim) = PRIM_NONE;
INTEGRATOR_STATE_WRITE(state, isect, type) = PRIMITIVE_NONE;
if (kernel_data.kernel_features & KERNEL_FEATURE_VOLUME) {
INTEGRATOR_STATE_ARRAY_WRITE(state, volume_stack, 0, object) = OBJECT_NONE;