From 5b525ced24608719a10d922653d6aeb1190d23ba Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Mon, 12 Aug 2013 22:32:39 +0200 Subject: [PATCH] Back port fix for issue #99 --- glm/gtc/type_ptr.inl | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/glm/gtc/type_ptr.inl b/glm/gtc/type_ptr.inl index c0d1d877..6c5a1577 100644 --- a/glm/gtc/type_ptr.inl +++ b/glm/gtc/type_ptr.inl @@ -284,6 +284,14 @@ namespace glm return &(mat[0].x); } + //! Get the address of the matrix content. + /// @see gtc_type_ptr + template + GLM_FUNC_QUALIFIER T * value_ptr(detail::tmat4x3 & mat) + { + return &(mat[0].x); + } + //! Return the constant address to the data of the input parameter. /// @see gtc_type_ptr template @@ -295,12 +303,15 @@ namespace glm return &(q[0]); } - //! Get the address of the matrix content. + //! Return the constant address to the data of the input parameter. /// @see gtc_type_ptr template - GLM_FUNC_QUALIFIER T * value_ptr(detail::tmat4x3 & mat) + GLM_FUNC_QUALIFIER T * value_ptr + ( + detail::tquat & q + ) { - return &(mat[0].x); + return &(q[0]); } //! Build a vector from a pointer.