Browse Source

Fixed compilation for Color4::rgb().

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
6cb257670a
  1. 4
      src/Color.h

4
src/Color.h

@ -376,8 +376,8 @@ template<class T> class Color4: public Math::Vector4<T> {
* *
* @see swizzle() * @see swizzle()
*/ */
inline Color3<T>& rgb() { return Math::Vector4<T>::xyz(); } inline Color3<T>& rgb() { return Color3<T>::from(Math::Vector4<T>::data()); }
inline constexpr Color3<T> rgb() const { return Math::Vector4<T>::xyz(); } /**< @overload */ inline constexpr Color3<T> rgb() const { return Color3<T>::from(Math::Vector4<T>::data()); } /**< @overload */
/** @copydoc Color3::toHSV() */ /** @copydoc Color3::toHSV() */
inline constexpr HSV toHSV() const { inline constexpr HSV toHSV() const {

Loading…
Cancel
Save