Fix #33405: preview render getting stuck in a particular .blend file, ObjectKey
[blender.git] / intern / cycles / kernel / kernel_shader.h
index 43ad4b1265abbed7621ca9209c6c556e9ba91733..98a7ec59d7b866e729e5839843db483612a12ea8 100644 (file)
@@ -698,7 +698,7 @@ __device void shader_eval_surface(KernelGlobals *kg, ShaderData *sd,
 #ifdef __SVM__
                svm_eval_nodes(kg, sd, SHADER_TYPE_SURFACE, randb, path_flag);
 #else
-               bsdf_diffuse_setup(sd, &sd->closure);
+               bsdf_diffuse_setup(&sd->closure);
                sd->closure.weight = make_float3(0.8f, 0.8f, 0.8f);
 #endif
        }