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

This commit is contained in:
Matthew Iselin 2017-06-20 09:35:41 -07:00
parent cad2c545f6
commit bff8379a29

View File

@ -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)));
return tmp.x;
# 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
}