add TextureUnit param to SetTextureMode

This commit is contained in:
Glenn Maynard
2007-02-13 04:59:05 +00:00
parent 9e94e85a35
commit ebb7189b88
12 changed files with 60 additions and 63 deletions
+2 -2
View File
@@ -503,7 +503,7 @@ void Sprite::DrawTexture( const TweenState *state )
state->diffuse[2].a > 0 ||
state->diffuse[3].a > 0 )
{
DISPLAY->SetTextureMode( TextureMode_Modulate );
DISPLAY->SetTextureMode( TextureUnit_1, TextureMode_Modulate );
//////////////////////
// render the shadow
@@ -532,7 +532,7 @@ void Sprite::DrawTexture( const TweenState *state )
//////////////////////
if( state->glow.a > 0.0001f )
{
DISPLAY->SetTextureMode( TextureMode_Glow );
DISPLAY->SetTextureMode( TextureUnit_1, TextureMode_Glow );
v[0].c = v[1].c = v[2].c = v[3].c = state->glow;
DISPLAY->DrawQuad( v );
}