Code cleanup: store branch factor in PathState.
[blender.git] / intern / cycles / kernel / split / kernel_branched.h
index 9fe4ec18e9eb9d533419b9fccf8158f17e0e1504..2c390593ba1458844745167f48c3bc599589076f 100644 (file)
@@ -188,7 +188,6 @@ ccl_device_noinline bool kernel_split_branched_path_surface_indirect_light_iter(
                        /* update state for next iteration */
                        branched_state->next_closure = i;
                        branched_state->next_sample = j+1;
-                       branched_state->num_samples = num_samples;
 
                        /* start the indirect path */
                        *tp *= num_samples_inv;