Fixed build

This commit is contained in:
Christophe Riccio
2017-01-01 01:28:15 +01:00
parent 2908ddfbaa
commit 7839b862e8
3 changed files with 8 additions and 8 deletions

View File

@@ -522,7 +522,7 @@ namespace glm
///
/// @see gtc_packing
/// @see vecType<L, intType, P> packUnorm(vecType<L, floatType, P> const & v)
template<typename uintType, length_t L, typename floatType, precision P>
template<typename floatType, length_t L, typename uintType, precision P>
GLM_FUNC_DECL vec<L, floatType, P> unpackUnorm(vec<L, uintType, P> const & v);
/// Convert each component of the normalized floating-point vector into signed integer values.
@@ -536,7 +536,7 @@ namespace glm
///
/// @see gtc_packing
/// @see vecType<L, intType, P> packSnorm(vecType<L, floatType, P> const & v)
template<typename intType, length_t L, typename floatType, precision P>
template<typename floatType, length_t L, typename intType, precision P>
GLM_FUNC_DECL vec<L, floatType, P> unpackSnorm(vec<L, intType, P> const & v);
/// Convert each component of the normalized floating-point vector into unsigned integer values.

View File

@@ -676,7 +676,7 @@ namespace detail
return vec<L, uintType, P>(round(clamp(v, static_cast<floatType>(0), static_cast<floatType>(1)) * static_cast<floatType>(std::numeric_limits<uintType>::max())));
}
template<typename uintType, length_t L, typename floatType, precision P>
template<typename floatType, length_t L, typename uintType, precision P>
GLM_FUNC_QUALIFIER vec<L, floatType, P> unpackUnorm(vec<L, uintType, P> const& v)
{
GLM_STATIC_ASSERT(std::numeric_limits<uintType>::is_integer, "uintType must be an integer type");
@@ -694,7 +694,7 @@ namespace detail
return vec<L, intType, P>(round(clamp(v , static_cast<floatType>(-1), static_cast<floatType>(1)) * static_cast<floatType>(std::numeric_limits<intType>::max())));
}
template<typename intType, length_t L, typename floatType, precision P>
template<typename floatType, length_t L, typename intType, precision P>
GLM_FUNC_QUALIFIER vec<L, floatType, P> unpackSnorm(vec<L, intType, P> const & v)
{
GLM_STATIC_ASSERT(std::numeric_limits<intType>::is_integer, "uintType must be an integer type");