Merge branch 'fix_glRotatef' into 'master'

Call fsincos with angle degrees instead of passing in radians

See merge request simulant/GLdc!153
This commit is contained in:
Luke Benstead 2025-02-22 08:20:21 +00:00
commit 5af0d5831d

View File

@ -181,11 +181,11 @@ void APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) {
0.0f, 0.0f, 0.0f, 1.0f
};
float r = DEG2RAD * angle;
#ifdef __DREAMCAST__
float s, c;
fsincos(r, &s, &c);
fsincos(angle, &s, &c);
#else
float r = DEG2RAD * angle;
float c = cosf(r);
float s = sinf(r);
#endif