diff --git a/glm/detail/type_mat2x2.inl b/glm/detail/type_mat2x2.inl index 33159a6a..29a5ded0 100644 --- a/glm/detail/type_mat2x2.inl +++ b/glm/detail/type_mat2x2.inl @@ -22,7 +22,7 @@ namespace glm template GLM_FUNC_QUALIFIER GLM_CONSTEXPR mat<2, 2, T, Q>::mat(mat<2, 2, T, P> const& m) # if GLM_HAS_INITIALIZER_LISTS - : value{m[0], m[1]} + : value{col_type(m[0]), col_type(m[1])} # endif { # if !GLM_HAS_INITIALIZER_LISTS diff --git a/glm/detail/type_mat2x3.inl b/glm/detail/type_mat2x3.inl index c158a5da..a5462ce0 100644 --- a/glm/detail/type_mat2x3.inl +++ b/glm/detail/type_mat2x3.inl @@ -20,7 +20,7 @@ namespace glm template GLM_FUNC_QUALIFIER GLM_CONSTEXPR mat<2, 3, T, Q>::mat(mat<2, 3, T, P> const& m) # if GLM_HAS_INITIALIZER_LISTS - : value{m.value[0], m.value[1]} + : value{col_type(m[0]), col_type(m[1])} # endif { # if !GLM_HAS_INITIALIZER_LISTS diff --git a/glm/detail/type_mat2x4.inl b/glm/detail/type_mat2x4.inl index 2a96d3d4..31c7ea2f 100644 --- a/glm/detail/type_mat2x4.inl +++ b/glm/detail/type_mat2x4.inl @@ -20,7 +20,7 @@ namespace glm template GLM_FUNC_QUALIFIER GLM_CONSTEXPR mat<2, 4, T, Q>::mat(mat<2, 4, T, P> const& m) # if GLM_HAS_INITIALIZER_LISTS - : value{m[0], m[1]} + : value{col_type(m[0]), col_type(m[1])} # endif { # if !GLM_HAS_INITIALIZER_LISTS