Cycles: better path termination for transparency.
[blender.git] / intern / cycles / kernel / split / kernel_shader_eval.h
index 2409d1ba28b966f9a89bba1eabd643939d41af3f..2bc2d300699f5950cce3902ce97fcbb593f8aa33 100644 (file)
@@ -50,7 +50,7 @@ ccl_device void kernel_shader_eval(KernelGlobals *kg)
        if(IS_STATE(ray_state, ray_index, RAY_ACTIVE)) {
                ccl_global PathState *state = &kernel_split_state.path_state[ray_index];
 
-               shader_eval_surface(kg, kernel_split_sd(sd, ray_index), state, state->flag, kernel_data.integrator.max_closures);
+               shader_eval_surface(kg, kernel_split_sd(sd, ray_index), state, state->flag);
 #ifdef __BRANCHED_PATH__
                if(kernel_data.integrator.branched) {
                        shader_merge_closures(kernel_split_sd(sd, ray_index));