Fix T50937: baking with OpenCL and CPU have slightly different brightness

OpenCL baking with SSS and Volume are not supported.
This commit is contained in:
Hristo Gueorguiev
2017-05-16 12:15:11 +02:00
parent 24676b535a
commit 40e6f65ea1
2 changed files with 3 additions and 3 deletions

View File

@@ -407,7 +407,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
}
#endif /* __SUBSURFACE__ */
#if defined(__EMISSION__) && defined(__BRANCHED_PATH__)
#if defined(__EMISSION__)
if(kernel_data.integrator.use_direct_light) {
int all = (kernel_data.integrator.sample_all_lights_indirect) ||
(state->flag & PATH_RAY_SHADOW_CATCHER);
@@ -421,7 +421,7 @@ ccl_device void kernel_path_indirect(KernelGlobals *kg,
L,
all);
}
#endif /* defined(__EMISSION__) && defined(__BRANCHED_PATH__) */
#endif /* defined(__EMISSION__) */
if(!kernel_path_surface_bounce(kg, rng, sd, &throughput, state, L, ray))
break;