mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Use correct precision in fastInverseSqrt to ensure the fast compute_inversesqrt is used.
This commit is contained in:
parent
cad2c545f6
commit
bff8379a29
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user