Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2021-12-09 19:46:21 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-12-09 19:46:21 +0300
commit56fa6f58a0f8aaf2fa23fd08e6b104816b3af2e1 (patch)
tree260847e6a79ed205c58192d6c5b154a90d3ff946 /intern/cycles/kernel
parente427e4dbb125dcf4429f5a9a16d007b4dcde5c19 (diff)
Fix T93874: Cycles crash with fast GI approximation
Diffstat (limited to 'intern/cycles/kernel')
-rw-r--r--intern/cycles/kernel/integrator/path_state.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/kernel/integrator/path_state.h b/intern/cycles/kernel/integrator/path_state.h
index e79497320af..ff6b55a73c3 100644
--- a/intern/cycles/kernel/integrator/path_state.h
+++ b/intern/cycles/kernel/integrator/path_state.h
@@ -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(