From d92a5b1b07bc8323ed233b5524e7335cab6c963e Mon Sep 17 00:00:00 2001 From: darc Date: Sat, 17 Feb 2024 02:45:37 -0600 Subject: [PATCH] Fix GL/matrix.c to work properly on -m4-single --- GL/matrix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GL/matrix.c b/GL/matrix.c index d95cd49..bfa2f12 100644 --- a/GL/matrix.c +++ b/GL/matrix.c @@ -6,7 +6,7 @@ #include "../containers/stack.h" -#define DEG2RAD (0.01745329251994329576923690768489) +#define DEG2RAD (0.01745329251994329576923690768489f) /* Depth range */ @@ -174,8 +174,8 @@ void APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) { }; float r = DEG2RAD * angle; - float c = cos(r); - float s = sin(r); + float c = fcos(r); + float s = fsin(r); VEC3_NORMALIZE(x, y, z);