Fix error in Cycles Optix adaptive sampling after recent cleanup

This commit is contained in:
Brecht Van Lommel 2020-03-06 23:28:33 +01:00
parent afe6df1487
commit b31b44c223
1 changed files with 1 additions and 1 deletions

View 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