From 0c70a2b1eae20ac2f7d224abbfb465c27d833c6e Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Tue, 13 Sep 2011 12:26:33 +0100 Subject: [PATCH] Fixed vec3 and vec4 for floattoXint functions --- glm/core/func_common.inl | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/glm/core/func_common.inl b/glm/core/func_common.inl index ed1e6866..8758c70f 100644 --- a/glm/core/func_common.inl +++ b/glm/core/func_common.inl @@ -1376,7 +1376,8 @@ namespace glm { return detail::tvec3( floatBitsToUint(value.x), - floatBitsToUint(value.y)); + floatBitsToUint(value.y), + floatBitsToUint(value.z)); } template @@ -1387,7 +1388,9 @@ namespace glm { return detail::tvec4( floatBitsToUint(value.x), - floatBitsToUint(value.y)); + floatBitsToUint(value.y), + floatBitsToUint(value.z), + floatBitsToUint(value.w)); } GLM_FUNC_QUALIFIER float intBitsToFloat(int const & value) @@ -1421,7 +1424,8 @@ namespace glm { return detail::tvec3( intBitsToFloat(value.x), - intBitsToFloat(value.y)); + intBitsToFloat(value.y), + intBitsToFloat(value.z)); } template @@ -1432,7 +1436,9 @@ namespace glm { return detail::tvec4( intBitsToFloat(value.x), - intBitsToFloat(value.y)); + intBitsToFloat(value.y), + intBitsToFloat(value.z), + intBitsToFloat(value.w)); } GLM_FUNC_QUALIFIER float uintBitsToFloat(uint const & value) @@ -1466,7 +1472,8 @@ namespace glm { return detail::tvec3( uintBitsToFloat(value.x), - uintBitsToFloat(value.y)); + uintBitsToFloat(value.y), + uintBitsToFloat(value.z)); } template @@ -1477,7 +1484,9 @@ namespace glm { return detail::tvec4( uintBitsToFloat(value.x), - uintBitsToFloat(value.y)); + uintBitsToFloat(value.y), + uintBitsToFloat(value.z), + uintBitsToFloat(value.w)); } template