From 582ea579a3ebfc7e00bd51dcc45f997eb2383c91 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 22 Nov 2014 00:03:39 +0100 Subject: [PATCH] Fixed sign for unsigned types #271 --- glm/detail/func_common.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 150bdb14..7ac80ba4 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -143,7 +143,7 @@ namespace detail { GLM_FUNC_QUALIFIER static vecType call(vecType const & x) { - return glm::abs(x); + return vecType(glm::greaterThan(x , vecType(0))); } };