From 6ec0e0104a05a1d541ab4541ba5e910d0eae31f1 Mon Sep 17 00:00:00 2001 From: Leon Marz Date: Sat, 18 Nov 2023 15:06:55 +0100 Subject: [PATCH] Fix build error on architectures without SSE or sse2neon As color_srgb_to_linear is only defined for them. Pull Request: https://projects.blender.org/blender/blender/pulls/115098 --- intern/cycles/blender/attribute_convert.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/intern/cycles/blender/attribute_convert.h b/intern/cycles/blender/attribute_convert.h index ee26e1d9571..34b75d55855 100644 --- a/intern/cycles/blender/attribute_convert.h +++ b/intern/cycles/blender/attribute_convert.h @@ -66,10 +66,10 @@ template<> struct AttributeConverter { static constexpr auto type_desc = TypeRGBA; static CyclesT convert(const blender::ColorGeometry4b &value) { - return color_srgb_to_linear(make_float4(byte_to_float(value[0]), - byte_to_float(value[1]), - byte_to_float(value[2]), - byte_to_float(value[3]))); + return color_srgb_to_linear_v4(make_float4(byte_to_float(value[0]), + byte_to_float(value[1]), + byte_to_float(value[2]), + byte_to_float(value[3]))); } }; template<> struct AttributeConverter {