Merge pull request #640 from miselin/fix-inversesqrt-precision

Use correct precision for detail::compute_inversesqrt in glm::fastInverseSqrt #640
This commit is contained in:
Christophe 2017-06-23 19:50:41 +02:00 committed by GitHub
commit 23a7c7897b

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
}