forked from bartvdbraak/blender
Fix T41912, OpenCL compile error when building without __SVM__
Thanks to Vitaliy Filippov for the patch.
This commit is contained in:
parent
bdd515fee2
commit
2ed1b67835
@ -798,8 +798,8 @@ ccl_device void shader_eval_surface(KernelGlobals *kg, ShaderData *sd,
|
||||
#ifdef __SVM__
|
||||
svm_eval_nodes(kg, sd, SHADER_TYPE_SURFACE, path_flag);
|
||||
#else
|
||||
sd->closure.weight = make_float3(0.8f, 0.8f, 0.8f);
|
||||
sd->closure.N = sd->N;
|
||||
sd->closure->weight = make_float3(0.8f, 0.8f, 0.8f);
|
||||
sd->closure->N = sd->N;
|
||||
sd->flag |= bsdf_diffuse_setup(&sd->closure);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user