Browse Source

Fix a bug in glm::perspective() where a degrees-to-radians conversion is being performed twice.

Dave Reid 13 years ago
parent
commit
e6b8f7a40e
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);
 		valType const rad = glm::radians(fovy);
 #endif
 #endif
         
         
-		valType range = tan(radians(rad / valType(2))) * zNear;	
+		valType range = tan(rad / valType(2)) * zNear;	
 		valType left = -range * aspect;
 		valType left = -range * aspect;
 		valType right = range * aspect;
 		valType right = range * aspect;
 		valType bottom = -range;
 		valType bottom = -range;