fixed gluPerspective to use GLdouble instead of GLfloat for m4-single compilation.
This commit is contained in:
parent
a34f18965d
commit
41e30028df
4
GL/glu.c
4
GL/glu.c
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user