Workaround for T47213: branched path sampling issues with CUDA 7.5.

This commit is contained in:
Brecht Van Lommel
2016-02-19 00:39:00 +01:00
parent 1d15421af9
commit 3c4f971392
4 changed files with 8 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ ccl_device void compute_light_pass(KernelGlobals *kg, ShaderData *sd, PathRadian
#if defined(__EMISSION__)
/* direct light */
if(kernel_data.integrator.use_direct_light) {
bool all = kernel_data.integrator.sample_all_lights_direct;
int all = kernel_data.integrator.sample_all_lights_direct;
kernel_branched_path_surface_connect_light(kg, &rng,
sd, &state, throughput, 1.0f, &L_sample, all);
}