Added detection of buggy Voodoo3 drivers, then found a hack that fixes the problems. Sigh...

This commit is contained in:
Chris Danford
2003-02-20 10:41:43 +00:00
parent 6796e39be7
commit 32cdbed7bf
6 changed files with 126 additions and 34 deletions
+4 -1
View File
@@ -780,7 +780,10 @@ void RageDisplay::RotateY( float r )
void RageDisplay::RotateZ( float r )
{
glRotatef(r* 180/PI, 0, 0, 1);
// HACK: Rotation about (0,0,1) seems to be broken in many Voodoo3 drivers,
// but only while using orthographic projections. Strange...
// Adding a tiny X component fixes the problem. -Chris
glRotatef(r* 180/PI, 0.00001f, 0, 1);
}
void RageDisplay::smPostMultMatrixf( const RageMatrix &f )