diff --git a/src/Color.h b/src/Color.h index bafd9c58f..69ad21b6c 100644 --- a/src/Color.h +++ b/src/Color.h @@ -376,8 +376,8 @@ template class Color4: public Math::Vector4 { * * @see swizzle() */ - inline Color3& rgb() { return Math::Vector4::xyz(); } - inline constexpr Color3 rgb() const { return Math::Vector4::xyz(); } /**< @overload */ + inline Color3& rgb() { return Color3::from(Math::Vector4::data()); } + inline constexpr Color3 rgb() const { return Color3::from(Math::Vector4::data()); } /**< @overload */ /** @copydoc Color3::toHSV() */ inline constexpr HSV toHSV() const {