Code refactor: remove emission and background closures, sum directly.

This commit is contained in:
Brecht Van Lommel
2017-11-01 19:00:42 +01:00
parent cac3d4d166
commit 2c02a04c46
13 changed files with 72 additions and 63 deletions

View File

@@ -466,7 +466,7 @@ ccl_device void kernel_branched_path_integrate(KernelGlobals *kg,
/* Shade background. */
if(!hit) {
kernel_path_background(kg, &state, &ray, throughput, &emission_sd, L);
kernel_path_background(kg, &state, &ray, throughput, &sd, L);
break;
}