瀏覽代碼

Fixed ticket #124 cast from mat* to quat undefined error

Christophe Riccio 14 年之前
父節點
當前提交
b2cb4fe479
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      glm/gtc/quaternion.inl

+ 2 - 2
glm/gtc/quaternion.inl

@@ -88,7 +88,7 @@ namespace detail{
 		tmat3x3<T> const & m
 	)
     {
-		*this = toQuat(m);
+		*this = gtc::quaternion::quat_cast(m);
     }
 
     template <typename T> 
@@ -97,7 +97,7 @@ namespace detail{
 		tmat4x4<T> const & m
 	)
     {
-		*this = toQuat(m);
+		*this = gtc::quaternion::quat_cast(m);
     }
 
     //////////////////////////////////////////////////////////////