浏览代码

Fixed cast

Christophe Riccio 15 年之前
父节点
当前提交
8ae490c437
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      glm/gtc/matrix_transform.inl

+ 2 - 2
glm/gtc/matrix_transform.inl

@@ -332,10 +332,10 @@ namespace matrix_transform
 		detail::tvec4<U> const & viewport
 		detail::tvec4<U> const & viewport
 	)
 	)
 	{
 	{
-		assert(delta.x > 0.0f && delta.y > 0.0f);
+		assert(delta.x > T(0) && delta.y > T(0));
 		detail::tmat4x4<T> Result(1.0f);
 		detail::tmat4x4<T> Result(1.0f);
 
 
-		if(!(delta.x > 0.0f && delta.y > 0.0f)) 
+		if(!(delta.x > T(0) && delta.y > T(0))) 
 			return Result; // Error
 			return Result; // Error
 
 
 		// Translate and scale the picked region to the entire window
 		// Translate and scale the picked region to the entire window