Merge branch 'gluPerspective' into 'master'
fixed gluPerspective to use GLdouble instead of GLfloat for m4-single compilation. See merge request simulant/GLdc!149
This commit is contained in:
commit
d3b8b89d47
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