From 6cb257670ac4d9ef373b417ce38af06454428cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 30 Sep 2012 02:04:12 +0200 Subject: [PATCH] Fixed compilation for Color4::rgb(). --- src/Color.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {