Cycles: OpenCL tweaks
[blender.git] / intern / cycles / kernel / kernel_shader.h
index 1647504207a5ff48a5c5202dc24415ea9bc7dd40..570e0721268a57fe57a09a73b47e43f02b42007b 100644 (file)
@@ -226,7 +226,7 @@ __device void shader_setup_from_displace(KernelGlobals *kg, ShaderData *sd,
        Ng = triangle_normal_MT(kg, prim, &shader);
 
        /* force smooth shading for displacement */
-       sd->shader |= SHADER_SMOOTH_NORMAL;
+       shader |= SHADER_SMOOTH_NORMAL;
 
        /* watch out: no instance transform currently */