From 63dfbdc187e15949bf18cc211a8f8dadd9765bae Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 25 Apr 2023 20:16:09 +0200 Subject: [PATCH] Fix mistake in Cycles float4 pow Not currently used anywhere, so should be no user visible change. --- intern/cycles/util/math_float4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/cycles/util/math_float4.h b/intern/cycles/util/math_float4.h index 301d2d789c0..1f5f3918623 100644 --- a/intern/cycles/util/math_float4.h +++ b/intern/cycles/util/math_float4.h @@ -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