Browse Source

Merge pull request #42 from mackron/perspective-fix

Fix a bug in glm::perspective(). Pull request #42
Christophe Riccio 13 years ago
parent
commit
4286b02686
1 changed files with 1 additions and 1 deletions
  1. 1 1
      glm/gtc/matrix_transform.inl

+ 1 - 1
glm/gtc/matrix_transform.inl

@@ -242,7 +242,7 @@ namespace glm
 		valType const rad = glm::radians(fovy);
 #endif
         
-		valType range = tan(radians(rad / valType(2))) * zNear;	
+		valType range = tan(rad / valType(2)) * zNear;	
 		valType left = -range * aspect;
 		valType right = range * aspect;
 		valType bottom = -range;