diff --git a/glm/detail/type_quat.hpp b/glm/detail/type_quat.hpp index daeaa707..0148abe8 100644 --- a/glm/detail/type_quat.hpp +++ b/glm/detail/type_quat.hpp @@ -88,7 +88,7 @@ namespace glm // -- Explicit basic constructors -- GLM_FUNC_DECL GLM_CONSTEXPR qua(T s, vec<3, T, Q> const& v); - GLM_FUNC_DECL GLM_CONSTEXPR qua(T w, T x, T y, T z); + GLM_FUNC_DECL GLM_CONSTEXPR qua(T, T, T, T); // -- Conversion constructors -- diff --git a/glm/detail/type_quat.inl b/glm/detail/type_quat.inl index 1956b7a0..8c0176c0 100644 --- a/glm/detail/type_quat.inl +++ b/glm/detail/type_quat.inl @@ -141,10 +141,11 @@ namespace detail {} template - GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua::qua(T _w, T _x, T _y, T _z) # ifdef GLM_FORCE_QUAT_DATA_WXYZ + GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua::qua(T _w, T _x, T _y, T _z) : w(_w), x(_x), y(_y), z(_z) # else + GLM_FUNC_QUALIFIER GLM_CONSTEXPR qua::qua(T _x, T _y, T _z, T _w) : x(_x), y(_y), z(_z), w(_w) # endif {}