Browse Source

Use correct precision in fastInverseSqrt to ensure the fast compute_inversesqrt is used.

Matthew Iselin 8 years ago
parent
commit
bff8379a29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtx/fast_square_root.inl

+ 1 - 1
glm/gtx/fast_square_root.inl

@@ -26,7 +26,7 @@ namespace glm
 			vec<1, T, P> tmp(detail::compute_inversesqrt<tvec1, genType, lowp, detail::is_aligned<lowp>::value>::call(vec<1, genType, lowp>(x)));
 			vec<1, T, P> tmp(detail::compute_inversesqrt<tvec1, genType, lowp, detail::is_aligned<lowp>::value>::call(vec<1, genType, lowp>(x)));
 			return tmp.x;
 			return tmp.x;
 #		else
 #		else
-			return detail::compute_inversesqrt<1, genType, highp, detail::is_aligned<highp>::value>::call(vec<1, genType, lowp>(x)).x;
+			return detail::compute_inversesqrt<1, genType, lowp, detail::is_aligned<lowp>::value>::call(vec<1, genType, lowp>(x)).x;
 #		endif
 #		endif
 	}
 	}