From 099a37205d4a02433f88b47b93dc5b227dd4e34d Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Sat, 31 Dec 2011 01:59:13 +0000 Subject: [PATCH] Fixed ticket #160, using isnan for isinf impl --- glm/core/func_common.inl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/glm/core/func_common.inl b/glm/core/func_common.inl index 7535b1f9..8567414f 100644 --- a/glm/core/func_common.inl +++ b/glm/core/func_common.inl @@ -880,8 +880,8 @@ namespace detail ) { return typename detail::tvec2::bool_type( - isnan(x.x), - isnan(x.y)); + isinf(x.x), + isinf(x.y)); } template @@ -891,9 +891,9 @@ namespace detail ) { return typename detail::tvec3::bool_type( - isnan(x.x), - isnan(x.y), - isnan(x.z)); + isinf(x.x), + isinf(x.y), + isinf(x.z)); } template @@ -903,10 +903,10 @@ namespace detail ) { return typename detail::tvec4::bool_type( - isnan(x.x), - isnan(x.y), - isnan(x.z), - isnan(x.w)); + isinf(x.x), + isinf(x.y), + isinf(x.z), + isinf(x.w)); } GLM_FUNC_QUALIFIER int floatBitsToInt(float const & value)