From b7f209b18dbd7819954b752caa458d44752dfd11 Mon Sep 17 00:00:00 2001 From: Zuzu-Typ Date: Sun, 4 Oct 2020 14:40:02 +0200 Subject: [PATCH] Fixed unpackUnorm Should use the same float type as defined in the template. --- glm/gtc/packing.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtc/packing.inl b/glm/gtc/packing.inl index 8c906e16..84ad60c7 100644 --- a/glm/gtc/packing.inl +++ b/glm/gtc/packing.inl @@ -683,7 +683,7 @@ namespace detail GLM_STATIC_ASSERT(std::numeric_limits::is_integer, "uintType must be an integer type"); GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "floatType must be a floating point type"); - return vec(v) * (static_cast(1) / static_cast(std::numeric_limits::max())); + return vec(v) * (static_cast(1) / static_cast(std::numeric_limits::max())); } template