Fixed sign for unsigned types #271

master
Christophe Riccio ago%!(EXTRA string=11 years)
parent 38161f01f8
commit 582ea579a3
  1. 2
      glm/detail/func_common.inl

@ -143,7 +143,7 @@ namespace detail
{ {
GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x) GLM_FUNC_QUALIFIER static vecType<T, P> call(vecType<T, P> const & x)
{ {
return glm::abs(x); return vecType<T, P>(glm::greaterThan(x , vecType<T, P>(0)));
} }
}; };

Loading…
Cancel
Save