Browse Source

Fixed bug #161, perspectiveFov was written with a left handed coord system.

Christophe Riccio 14 years ago
parent
commit
aebcd7ec3f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      glm/gtc/matrix_transform.inl

+ 2 - 2
glm/gtc/matrix_transform.inl

@@ -261,8 +261,8 @@ namespace glm
 		Result[0][0] = w;
 		Result[1][1] = h;
 		Result[2][2] = (zFar + zNear) / (zFar - zNear);
-		Result[2][3] = valType(1);
-		Result[3][2] = -(valType(2) * zFar * zNear) / (zFar - zNear);
+		Result[2][3] = -valType(1);
+		Result[3][2] = (valType(2) * zFar * zNear) / (zFar - zNear);
 		return Result;
 	}