Relaxed parameter checks for CreatePerspectiveFieldOfView. Fixes issue [#1693]: "CreatePerspectiveFieldOfView throws in valid cases".

This commit is contained in:
the_fiddler 2010-11-21 00:15:18 +00:00
parent 4be74af5d4
commit d8612f4df6
2 changed files with 0 additions and 4 deletions

View file

@ -565,8 +565,6 @@ namespace OpenTK
throw new ArgumentOutOfRangeException("zNear");
if (zFar <= 0)
throw new ArgumentOutOfRangeException("zFar");
if (zNear >= zFar)
throw new ArgumentOutOfRangeException("zNear");
float yMax = zNear * (float)System.Math.Tan(0.5f * fovy);
float yMin = -yMax;

View file

@ -565,8 +565,6 @@ namespace OpenTK
throw new ArgumentOutOfRangeException("zNear");
if (zFar <= 0)
throw new ArgumentOutOfRangeException("zFar");
if (zNear >= zFar)
throw new ArgumentOutOfRangeException("zNear");
double yMax = zNear * System.Math.Tan(0.5 * fovy);
double yMin = -yMax;