Cycles OSL minor optimizations: recycle shading context, don't do memory
[blender.git] / intern / cycles / kernel / osl / emissive.cpp
index 37e3e37c00a9521477cd2759e224622199e633c6..7d9fa81dbdde20c09d6cf6b106fef98e5449e4f5 100644 (file)
@@ -65,7 +65,7 @@ public:
 
        Color3 eval(const Vec3 &Ng, const Vec3 &omega_out) const
        {
 
        Color3 eval(const Vec3 &Ng, const Vec3 &omega_out) const
        {
-               float3 result = emissive_eval(TO_FLOAT3(Ng), TO_FLOAT3(omega_out));
+               float3 result = emissive_simple_eval(TO_FLOAT3(Ng), TO_FLOAT3(omega_out));
                return TO_COLOR3(result);
        }
 
                return TO_COLOR3(result);
        }