draw models with 2 textures with multitexture instead of 2 passes. D3D multitexture not tested yet

This commit is contained in:
Chris Danford
2004-02-04 09:55:18 +00:00
parent 9c7d8a60c2
commit 9502f1c262
12 changed files with 96 additions and 25 deletions
+2 -1
View File
@@ -335,7 +335,8 @@ void Sprite::DrawTexture( const TweenState *state )
v[2].p = RageVector3( croppedQuadVerticies.right, croppedQuadVerticies.bottom, 0 ); // bottom right
v[3].p = RageVector3( croppedQuadVerticies.right, croppedQuadVerticies.top, 0 ); // top right
DISPLAY->SetTexture( m_pTexture );
DISPLAY->ClearAllTextures();
DISPLAY->SetTexture( 0, m_pTexture );
// Must call this after setting the texture or else texture
// parameters have no effect.