Call fsincos with angle degrees instead of passing in radians
This commit is contained in:
parent
e71560f31b
commit
32e3f4374e
@ -181,11 +181,11 @@ void APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) {
|
|||||||
0.0f, 0.0f, 0.0f, 1.0f
|
0.0f, 0.0f, 0.0f, 1.0f
|
||||||
};
|
};
|
||||||
|
|
||||||
float r = DEG2RAD * angle;
|
|
||||||
#ifdef __DREAMCAST__
|
#ifdef __DREAMCAST__
|
||||||
float s, c;
|
float s, c;
|
||||||
fsincos(r, &s, &c);
|
fsincos(angle, &s, &c);
|
||||||
#else
|
#else
|
||||||
|
float r = DEG2RAD * angle;
|
||||||
float c = cosf(r);
|
float c = cosf(r);
|
||||||
float s = sinf(r);
|
float s = sinf(r);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user