Cleanup: Same thing in path trace setup, we can safely always assign the proper value.

This commit is contained in:
Thomas Dinges 2014-07-10 01:49:34 +02:00
parent dda60dd261
commit 83f5d41071
Notes: blender-bot 2023-02-14 10:32:59 +01:00
Referenced by issue #41031, Color Correction node affect Alpha channel
Referenced by issue #41013, OSL and Crash
1 changed files with 1 additions and 4 deletions

View File

@ -1050,11 +1050,8 @@ ccl_device_inline void kernel_path_trace_setup(KernelGlobals *kg, ccl_global uin
{
float filter_u;
float filter_v;
#ifdef __CMJ__
int num_samples = kernel_data.integrator.aa_samples;
#else
int num_samples = 0;
#endif
path_rng_init(kg, rng_state, sample, num_samples, rng, x, y, &filter_u, &filter_v);