use SetTextureMode

This commit is contained in:
Glenn Maynard
2007-02-13 04:15:32 +00:00
parent 256a737d25
commit 4bff44a918
6 changed files with 13 additions and 13 deletions
+3 -3
View File
@@ -322,7 +322,7 @@ void Model::DrawPrimitives()
//////////////////////
if( m_pTempState->diffuse[0].a > 0 )
{
DISPLAY->SetTextureModeModulate();
DISPLAY->SetTextureMode( TextureMode_Modulate );
for( unsigned i = 0; i < m_pGeometry->m_Meshes.size(); ++i )
{
@@ -367,7 +367,7 @@ void Model::DrawPrimitives()
DISPLAY->SetTexture( TextureUnit_2, mat.alpha.GetCurrentTexture() ? mat.alpha.GetCurrentTexture()->GetTexHandle() : 0 );
Actor::SetTextureRenderStates(); // set Actor-specified render states
DISPLAY->SetSphereEnvironmentMapping( mat.alpha.m_bSphereMapped );
DISPLAY->SetTextureModeAdd();
DISPLAY->SetTextureMode( TextureMode_Add );
DISPLAY->SetTextureFiltering( true );
}
else
@@ -434,7 +434,7 @@ void Model::DrawPrimitives()
//////////////////////
if( m_pTempState->glow.a > 0.0001f )
{
DISPLAY->SetTextureModeGlow();
DISPLAY->SetTextureMode( TextureMode_Glow );
for( unsigned i = 0; i < m_pGeometry->m_Meshes.size(); ++i )
{