Fix mistake in Cycles float4 pow

Not currently used anywhere, so should be no user visible change.
This commit is contained in:
Brecht Van Lommel
2023-04-25 20:16:09 +02:00
parent ca52f0fae3
commit 63dfbdc187

View File

@@ -595,7 +595,7 @@ ccl_device_inline float4 ensure_finite(float4 v)
ccl_device_inline float4 pow(float4 v, float e)
{
return make_float4(powf(v.x, e), powf(v.y, e), powf(v.z, e), powf(v.z, e));
return make_float4(powf(v.x, e), powf(v.y, e), powf(v.z, e), powf(v.w, e));
}
CCL_NAMESPACE_END