diff --git a/src/Magnum/Math/Color.h b/src/Magnum/Math/Color.h index 8327352d8..1ebc8f5a2 100644 --- a/src/Magnum/Math/Color.h +++ b/src/Magnum/Math/Color.h @@ -126,8 +126,8 @@ template inline typename Color3::Hsv toHsv(typename std::enable_if RGB conversion */ template typename std::enable_if::value, Color3>::type fromSrgb(const Vector3& srgb) { - constexpr const T a(0.055); - return lerp(srgb/T(12.92), pow((srgb + Vector3{a})/(T(1.0) + a), T(2.4)), srgb > Vector3(0.04045)); + constexpr const T a(T(0.055)); + return lerp(srgb/T(12.92), pow((srgb + Vector3{a})/(T(1.0) + a), T(2.4)), srgb > Vector3(T(0.04045))); } template typename std::enable_if::value, Color4>::type fromSrgbAlpha(const Vector4& srgbAlpha) { return {fromSrgb(srgbAlpha.rgb()), srgbAlpha.a()};