From 41e30028df8ffa68b36a9426dfb3229171afc475 Mon Sep 17 00:00:00 2001 From: GPF Date: Wed, 5 Feb 2025 10:42:05 -0700 Subject: [PATCH] fixed gluPerspective to use GLdouble instead of GLfloat for m4-single compilation. --- GL/glu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GL/glu.c b/GL/glu.c index 2ed4444..9b2f48d 100644 --- a/GL/glu.c +++ b/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);