Browse Source

Back port fix for issue #99

Christophe Riccio 12 years ago
parent
commit
5b525ced24
1 changed files with 14 additions and 3 deletions
  1. 14 3
      glm/gtc/type_ptr.inl

+ 14 - 3
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<typename T>
+	GLM_FUNC_QUALIFIER T * value_ptr(detail::tmat4x3<T> & mat)
+	{
+		return &(mat[0].x);
+	}
+    
 	//! Return the constant address to the data of the input parameter.
 	/// @see gtc_type_ptr
 	template<typename T>
@@ -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<typename T>
-	GLM_FUNC_QUALIFIER T * value_ptr(detail::tmat4x3<T> & mat)
+	GLM_FUNC_QUALIFIER T * value_ptr
+	(
+        detail::tquat<T> & q
+    )
 	{
-		return &(mat[0].x);
+		return &(q[0]);
 	}
 
 	//! Build a vector from a pointer.