Code cleanup: fix warning and improve terminology.

This commit is contained in:
Brecht Van Lommel
2017-08-11 14:21:34 +02:00
parent a4bcdf5fb1
commit 85ad248c36
5 changed files with 9 additions and 9 deletions

View File

@@ -356,7 +356,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
* mainly due to the mixed in MIS that we use. gives too many unneeded
* shader evaluations, only need emission if we are going to terminate */
float probability =
path_state_terminate_probability(kg,
path_state_continuation_probability(kg,
state,
throughput*num_samples);
@@ -717,7 +717,7 @@ ccl_device_inline float kernel_path_integrate(KernelGlobals *kg,
/* path termination. this is a strange place to put the termination, it's
* mainly due to the mixed in MIS that we use. gives too many unneeded
* shader evaluations, only need emission if we are going to terminate */
float probability = path_state_terminate_probability(kg, &state, throughput);
float probability = path_state_continuation_probability(kg, &state, throughput);
if(probability == 0.0f) {
break;