fix compiling for MSVC

This commit is contained in:
Alam Ed Arias 2018-12-14 20:42:37 -05:00
parent 6fd66bdb49
commit 78634679f1
1 changed files with 1 additions and 1 deletions

View File

@ -602,7 +602,7 @@ static void GLPerspective(GLdouble fovy, GLdouble aspect)
const GLdouble deltaZ = zFar - zNear;
GLdouble cotangent;
if ((fabsf(deltaZ) < 1.0E-36f) || fpclassify(sine) == FP_ZERO || fpclassify(aspect) == FP_ZERO)
if ((fabsf((float)deltaZ) < 1.0E-36f) || fpclassify(sine) == FP_ZERO || fpclassify(aspect) == FP_ZERO)
{
return;
}