Browse Source

Fixed bitfieldInterleave for 4 components #175

Christophe Riccio 11 years ago
parent
commit
db09ecfc41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtx/bit.inl

+ 1 - 1
glm/gtx/bit.inl

@@ -666,7 +666,7 @@ namespace glm
 
 
 	inline uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w)
 	inline uint32 bitfieldInterleave(uint8 x, uint8 y, uint8 z, uint8 w)
 	{
 	{
-		return detail::bitfieldInterleave<uint8, uint32>(x, y, z);
+		return detail::bitfieldInterleave<uint8, uint32>(x, y, z, w);
 	}
 	}
 
 
 	inline int64 bitfieldInterleave(int16 x, int16 y, int16 z, int16 w)
 	inline int64 bitfieldInterleave(int16 x, int16 y, int16 z, int16 w)