Relaxed parameter checks for CreatePerspectiveFieldOfView. Fixes issue [#1693]: "CreatePerspectiveFieldOfView throws in valid cases".
This commit is contained in:
parent
f925ec1507
commit
8e88dbb352
2 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue