Fix Cycles bug in RR termination, probability should never be > 1.0.

This causes render differences in some scenes, for example fishy_cat
and pabellon scenes render brighter in a few spots. This is an old
bug, not due to recent RR changes.
This commit is contained in:
Brecht Van Lommel 2017-09-12 02:27:02 +02:00
parent 836a1ccf72
commit df1af9b349
Notes: blender-bot 2023-02-14 06:04:13 +01:00
Referenced by issue #54505, Difference in render
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ ccl_device_inline float path_state_terminate_probability(KernelGlobals *kg, ccl_
}
/* probalistic termination */
return average(throughput); /* todo: try using max here */
return min(average(throughput), 1.0f); /* todo: try using max here */
}
/* TODO(DingTo): Find more meaningful name for this */