Cycles: better path termination for transparency.
[blender.git] / intern / cycles / kernel / kernel_path_branched.h
index 6fb55bda08dcb37c24b1ff1dbf51da93569f2bcf..441a06eeba33850ff7a3d1eb227a51d47b4556f4 100644 (file)
@@ -480,7 +480,7 @@ ccl_device void kernel_branched_path_integrate(KernelGlobals *kg,
 
                /* Setup and evaluate shader. */
                shader_setup_from_ray(kg, &sd, &isect, &ray);
-               shader_eval_surface(kg, &sd, &state, state.flag, kernel_data.integrator.max_closures);
+               shader_eval_surface(kg, &sd, &state, state.flag);
                shader_merge_closures(&sd);
 
                /* Apply shadow catcher, holdout, emission. */