Browse Source

Fixed serious copy/paste error.

Unnoticed since c1cf94fb46.
pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
42af2c1a49
  1. 4
      src/TypeTraits.h

4
src/TypeTraits.h

@ -197,7 +197,7 @@ template<> struct TypeTraits<GLshort>: public Math::MathTypeTraits<std::int16_t>
inline constexpr static std::size_t count() { return 1; }
};
template<> struct TypeTraits<GLuint>: public Math::MathTypeTraits<std::uint16_t> {
template<> struct TypeTraits<GLuint>: public Math::MathTypeTraits<std::uint32_t> {
inline constexpr static Type type() { return Type::UnsignedInt; }
inline constexpr static Type indexType() { return Type::UnsignedInt; }
inline constexpr static AbstractImage::ComponentType imageType() { return AbstractImage::ComponentType::UnsignedInt; }
@ -205,7 +205,7 @@ template<> struct TypeTraits<GLuint>: public Math::MathTypeTraits<std::uint16_t>
inline constexpr static std::size_t count() { return 1; }
};
template<> struct TypeTraits<GLint>: public Math::MathTypeTraits<std::int16_t> {
template<> struct TypeTraits<GLint>: public Math::MathTypeTraits<std::int32_t> {
inline constexpr static Type type() { return Type::Int; }
/* Can not be used for indices */
inline constexpr static AbstractImage::ComponentType imageType() { return AbstractImage::ComponentType::Int; }

Loading…
Cancel
Save