浏览代码

Fixed missing conversion to T

Patrik Huber 9 年之前
父节点
当前提交
d33cbe42a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      glm/gtc/matrix_transform.inl

+ 1 - 1
glm/gtc/matrix_transform.inl

@@ -168,7 +168,7 @@ namespace glm
 		T bottom, T top
 	)
 	{
-		tmat4x4<T, defaultp> Result(1);
+		tmat4x4<T, defaultp> Result(T(1));
 		Result[0][0] = static_cast<T>(2) / (right - left);
 		Result[1][1] = static_cast<T>(2) / (top - bottom);
 		Result[2][2] = - static_cast<T>(1);