Fixed sign for unsigned types #271

This commit is contained in:
Christophe Riccio 2014-11-22 00:03:39 +01:00
parent 38161f01f8
commit 582ea579a3

View file

@ -143,7 +143,7 @@ namespace detail
{
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)));
}
};