Browse Source

Changed T() to static_cast<T>

Patrik Huber 9 years ago
parent
commit
80390afd82
1 changed files with 1 additions and 1 deletions
  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(T(1));
+		tmat4x4<T, defaultp> Result(static_cast<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);