Kill the translation instead of scaling to 0,0. Oops.

This commit is contained in:
Chris Danford
2005-10-20 18:19:44 +00:00
parent fbe40c9c49
commit 779ad158b6
+20 -2
View File
@@ -1189,9 +1189,27 @@ void RageCompiledGeometryHWOGL::Draw( int iMeshIndex ) const
}
else
{
// Approximate by applying the texture scale of the first vertex to the whole mesh.
// Kill the texture translation.
// XXX: Change me to scale the translation by the TextureTranslationScale of the first vertex.
RageMatrix mat;
glGetFloatv( GL_TEXTURE_MATRIX , (float*)mat );
/*
for( int i=0; i<4; i++ )
{
CString s;
for( int j=0; j<4; j++ )
s += ssprintf( "%f ", mat.m[i][j] );
LOG->Trace( s );
}
*/
mat.m[3][0] = 0;
mat.m[3][1] = 0;
mat.m[3][2] = 0;
glMatrixMode( GL_TEXTURE );
glScalef( 0, 0, 0 );
glLoadMatrixf( (const float*)mat );
}
}