fixed gluPerspective to use GLdouble instead of GLfloat for m4-single compilation.

This commit is contained in:
GPF 2025-02-05 10:42:05 -07:00
parent a34f18965d
commit 41e30028df

View File

@ -4,9 +4,9 @@
/* Set the Perspective */
void APIENTRY gluPerspective(GLdouble angle, GLdouble aspect,
GLdouble znear, GLdouble zfar) {
GLfloat fW, fH;
GLdouble fW, fH;
fH = tanf(angle * (M_PI / 360.0f)) * znear;
fH = tan(angle * (M_PI / 360.0)) * znear;
fW = fH * aspect;
glFrustum(-fW, fW, -fH, fH, znear, zfar);