From 78e420703cee907c9c3e90da52af56ba215d9ac5 Mon Sep 17 00:00:00 2001 From: Celestin de Villa Date: Sat, 31 Oct 2015 21:20:42 +0100 Subject: [PATCH] gtc/quaternion matrix conversion const support --- glm/gtc/quaternion.hpp | 4 ++-- glm/gtc/quaternion.inl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/glm/gtc/quaternion.hpp b/glm/gtc/quaternion.hpp index daf9cc19..5a4425e6 100644 --- a/glm/gtc/quaternion.hpp +++ b/glm/gtc/quaternion.hpp @@ -134,8 +134,8 @@ namespace glm /// Explicit conversion operators # if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS - GLM_FUNC_DECL explicit operator tmat3x3(); - GLM_FUNC_DECL explicit operator tmat4x4(); + GLM_FUNC_DECL explicit operator tmat3x3() const; + GLM_FUNC_DECL explicit operator tmat4x4() const; # endif /// Create a quaternion from two normalized axis diff --git a/glm/gtc/quaternion.inl b/glm/gtc/quaternion.inl index e5fe5505..75ef41ee 100644 --- a/glm/gtc/quaternion.inl +++ b/glm/gtc/quaternion.inl @@ -265,13 +265,13 @@ namespace detail # if GLM_HAS_EXPLICIT_CONVERSION_OPERATORS template - GLM_FUNC_QUALIFIER tquat::operator tmat3x3() + GLM_FUNC_QUALIFIER tquat::operator tmat3x3() const { return mat3_cast(*this); } template - GLM_FUNC_QUALIFIER tquat::operator tmat4x4() + GLM_FUNC_QUALIFIER tquat::operator tmat4x4() const { return mat4_cast(*this); }