Fixed ticket #160, using isnan for isinf impl

master
Christophe Riccio ago%!(EXTRA string=14 years)
parent 1625a495a8
commit 099a37205d
  1. 18
      glm/core/func_common.inl

@ -880,8 +880,8 @@ namespace detail
) )
{ {
return typename detail::tvec2<T>::bool_type( return typename detail::tvec2<T>::bool_type(
isnan(x.x), isinf(x.x),
isnan(x.y)); isinf(x.y));
} }
template <typename T> template <typename T>
@ -891,9 +891,9 @@ namespace detail
) )
{ {
return typename detail::tvec3<T>::bool_type( return typename detail::tvec3<T>::bool_type(
isnan(x.x), isinf(x.x),
isnan(x.y), isinf(x.y),
isnan(x.z)); isinf(x.z));
} }
template <typename T> template <typename T>
@ -903,10 +903,10 @@ namespace detail
) )
{ {
return typename detail::tvec4<T>::bool_type( return typename detail::tvec4<T>::bool_type(
isnan(x.x), isinf(x.x),
isnan(x.y), isinf(x.y),
isnan(x.z), isinf(x.z),
isnan(x.w)); isinf(x.w));
} }
GLM_FUNC_QUALIFIER int floatBitsToInt(float const & value) GLM_FUNC_QUALIFIER int floatBitsToInt(float const & value)

Loading…
Cancel
Save