Fix T78776: Cycles OpenCL error after recent changes for holdouts

This commit is contained in:
Brecht Van Lommel 2020-07-10 17:09:35 +02:00
parent 9dbe9a753a
commit d8e648c352
Notes: blender-bot 2023-02-14 09:09:43 +01:00
Referenced by issue #78776, Split kernel error: failed to load Kernel_path_init on openCL
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ ccl_device_forceinline bool kernel_path_shader_apply(KernelGlobals *kg,
if (kernel_data.background.transparent) {
L->transparent += average(holdout_weight * throughput);
}
if (holdout_weight == make_float3(1.0f, 1.0f, 1.0f)) {
if (isequal_float3(holdout_weight, make_float3(1.0f, 1.0f, 1.0f))) {
return false;
}
}