diff --git a/glm/core/func_integer.inl b/glm/core/func_integer.inl index 0e30aa2a..fb046708 100644 --- a/glm/core/func_integer.inl +++ b/glm/core/func_integer.inl @@ -285,8 +285,8 @@ namespace glm ) { return detail::tvec2( - bitfieldExtract(Value[0]), - bitfieldExtract(Value[1])); + bitfieldExtract(Value[0], Offset, Bits), + bitfieldExtract(Value[1], Offset, Bits)); } template @@ -298,9 +298,9 @@ namespace glm ) { return detail::tvec3( - bitfieldExtract(Value[0]), - bitfieldExtract(Value[1]), - bitfieldExtract(Value[2])); + bitfieldExtract(Value[0], Offset, Bits), + bitfieldExtract(Value[1], Offset, Bits), + bitfieldExtract(Value[2], Offset, Bits)); } template @@ -312,10 +312,10 @@ namespace glm ) { return detail::tvec4( - bitfieldExtract(Value[0]), - bitfieldExtract(Value[1]), - bitfieldExtract(Value[2]), - bitfieldExtract(Value[3])); + bitfieldExtract(Value[0], Offset, Bits), + bitfieldExtract(Value[1], Offset, Bits), + bitfieldExtract(Value[2], Offset, Bits), + bitfieldExtract(Value[3], Offset, Bits)); } // bitfieldInsert