From 79ceca230f57a2b51482001e0605ef11e2d5dd11 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 6 Oct 2015 01:51:52 +0200 Subject: [PATCH] Fixed compScale --- glm/gtx/component_wise.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/component_wise.inl b/glm/gtx/component_wise.inl index 4c380b7a..dfc4ad8c 100644 --- a/glm/gtx/component_wise.inl +++ b/glm/gtx/component_wise.inl @@ -79,7 +79,7 @@ namespace detail { floatType const Min = static_cast(std::numeric_limits::min()); floatType const Max = static_cast(std::numeric_limits::max()); - return (vecType(v) + Min) * (Max - Min) * static_cast(2) - static_cast(1); + return vecType((vecType(v) + Min) * (Max - Min) * static_cast(2) - static_cast(1)); } };