Fix error in Cycles Optix adaptive sampling after recent cleanup
authorBrecht Van Lommel <brecht@blender.org>
Fri, 6 Mar 2020 22:28:33 +0000 (23:28 +0100)
committerBrecht Van Lommel <brecht@blender.org>
Fri, 6 Mar 2020 22:46:58 +0000 (23:46 +0100)
intern/cycles/device/device_optix.cpp

index 6983c35799d31705a58f189736dfe2031d11b1ce..30d624fdf7c4db9aa9884ea794b353703ffc4b2e 100644 (file)
@@ -672,7 +672,7 @@ class OptiXDevice : public CUDADevice {
       // Run the adaptive sampling kernels at selected samples aligned to step samples.
       uint filter_sample = wtile.start_sample + wtile.num_samples - 1;
       if (task.adaptive_sampling.use && task.adaptive_sampling.need_filter(filter_sample)) {
-        adaptive_sampling_filter(&wtile, d_wtile_ptr, cuda_stream[thread_index]);
+        adaptive_sampling_filter(filter_sample, &wtile, d_wtile_ptr, cuda_stream[thread_index]);
       }
 
       // Wait for launch to finish