From e841c1dbe0d4e004f5b33b2ec63931bdcb57462b Mon Sep 17 00:00:00 2001 From: Jonathan Armond Date: Mon, 15 Jul 2013 12:06:54 +0100 Subject: [PATCH] Add missing non-const value_ptr for quat --- glm/gtc/type_ptr.inl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/glm/gtc/type_ptr.inl b/glm/gtc/type_ptr.inl index ac14036a..304f3e6e 100644 --- a/glm/gtc/type_ptr.inl +++ b/glm/gtc/type_ptr.inl @@ -284,6 +284,17 @@ namespace glm return &(mat[0].x); } + //! Return the constant address to the data of the input parameter. + /// @see gtc_type_ptr + template + GLM_FUNC_QUALIFIER T * value_ptr + ( + detail::tquat & q + ) + { + return &(q[0]); + } + //! Return the constant address to the data of the input parameter. /// @see gtc_type_ptr template