Merge branch 'master' into 'master'

Fix GL/matrix.c to work properly on -m4-single

See merge request simulant/GLdc!114
This commit is contained in:
Luke Benstead 2024-02-19 07:12:29 +00:00
commit 1b2ab9fe4e

View File

@ -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 = cosf(r);
float s = sinf(r);
VEC3_NORMALIZE(x, y, z);