From bff8379a29cebfb2eb4f781439f16136167261ac Mon Sep 17 00:00:00 2001 From: Matthew Iselin Date: Tue, 20 Jun 2017 09:35:41 -0700 Subject: [PATCH] Use correct precision in fastInverseSqrt to ensure the fast compute_inversesqrt is used. --- glm/gtx/fast_square_root.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glm/gtx/fast_square_root.inl b/glm/gtx/fast_square_root.inl index 846659ab..c7e6a2c0 100644 --- a/glm/gtx/fast_square_root.inl +++ b/glm/gtx/fast_square_root.inl @@ -26,7 +26,7 @@ namespace glm vec<1, T, P> tmp(detail::compute_inversesqrt::value>::call(vec<1, genType, lowp>(x))); return tmp.x; # else - return detail::compute_inversesqrt<1, genType, highp, detail::is_aligned::value>::call(vec<1, genType, lowp>(x)).x; + return detail::compute_inversesqrt<1, genType, lowp, detail::is_aligned::value>::call(vec<1, genType, lowp>(x)).x; # endif }