add TextureUnit param to SetTextureMode
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user