Fix viewport denoising not working if start samples higher than total samples

This commit is contained in:
2020-06-25 11:46:32 +02:00
parent 64a584b38a
commit b30df982d2
+1 -1
View File
@@ -1135,7 +1135,7 @@ bool Session::render_need_denoise(bool &delayed)
}
/* Do not denoise until the sample at which denoising should start is reached. */
if (tile_manager.state.sample < params.denoising.start_sample) {
if (tile_manager.state.sample < min(params.denoising.start_sample, params.samples - 1)) {
return false;
}