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
This commit is contained in:
committed by
Brecht Van Lommel
parent
ea1de499b3
commit
6ec0e0104a
@@ -66,10 +66,10 @@ template<> struct AttributeConverter<blender::ColorGeometry4b> {
|
||||
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<bool> {
|
||||
|
||||
Reference in New Issue
Block a user