Browse Source

Fixed vec3 and vec4 for floattoXint functions

Christophe Riccio 14 years ago
parent
commit
0c70a2b1ea
1 changed files with 15 additions and 6 deletions
  1. 15 6
      glm/core/func_common.inl

+ 15 - 6
glm/core/func_common.inl

@@ -1376,7 +1376,8 @@ namespace glm
     {
     {
         return detail::tvec3<uint>(
         return detail::tvec3<uint>(
             floatBitsToUint(value.x),
             floatBitsToUint(value.x),
-            floatBitsToUint(value.y));
+			floatBitsToUint(value.y),
+			floatBitsToUint(value.z));
     }
     }
 
 
     template <typename T>
     template <typename T>
@@ -1387,7 +1388,9 @@ namespace glm
     {
     {
         return detail::tvec4<uint>(
         return detail::tvec4<uint>(
             floatBitsToUint(value.x),
             floatBitsToUint(value.x),
-            floatBitsToUint(value.y));
+			floatBitsToUint(value.y),
+			floatBitsToUint(value.z),
+			floatBitsToUint(value.w));
     }
     }
 
 
 	GLM_FUNC_QUALIFIER float intBitsToFloat(int const & value)
 	GLM_FUNC_QUALIFIER float intBitsToFloat(int const & value)
@@ -1421,7 +1424,8 @@ namespace glm
     {
     {
         return detail::tvec3<float>(
         return detail::tvec3<float>(
             intBitsToFloat(value.x),
             intBitsToFloat(value.x),
-            intBitsToFloat(value.y));
+			intBitsToFloat(value.y),
+			intBitsToFloat(value.z));
     }
     }
 
 
     template <typename T>
     template <typename T>
@@ -1432,7 +1436,9 @@ namespace glm
     {
     {
         return detail::tvec4<float>(
         return detail::tvec4<float>(
             intBitsToFloat(value.x),
             intBitsToFloat(value.x),
-            intBitsToFloat(value.y));
+			intBitsToFloat(value.y),
+			intBitsToFloat(value.z),
+			intBitsToFloat(value.w));
     }
     }
 
 
     GLM_FUNC_QUALIFIER float uintBitsToFloat(uint const & value)
     GLM_FUNC_QUALIFIER float uintBitsToFloat(uint const & value)
@@ -1466,7 +1472,8 @@ namespace glm
     {
     {
         return detail::tvec3<float>(
         return detail::tvec3<float>(
             uintBitsToFloat(value.x),
             uintBitsToFloat(value.x),
-            uintBitsToFloat(value.y));
+			uintBitsToFloat(value.y),
+			uintBitsToFloat(value.z));
     }
     }
 
 
     template <typename T>
     template <typename T>
@@ -1477,7 +1484,9 @@ namespace glm
     {
     {
         return detail::tvec4<float>(
         return detail::tvec4<float>(
             uintBitsToFloat(value.x),
             uintBitsToFloat(value.x),
-            uintBitsToFloat(value.y));
+			uintBitsToFloat(value.y),
+			uintBitsToFloat(value.z),
+			uintBitsToFloat(value.w));
     }
     }
 
 
 	template <typename genType>
 	template <typename genType>