revert order to fix env mapping (not sure why yet)

This commit is contained in:
Chris Danford
2005-04-26 20:18:51 +00:00
parent 8521718f3f
commit 12185dfd0d
+5 -5
View File
@@ -413,6 +413,11 @@ void Model::DrawPrimitives()
}
else
{
// render the diffuse texture with texture unit 1
DISPLAY->SetTexture( 0, mat.diffuse.GetCurrentTexture() );
Actor::SetTextureRenderStates(); // set Actor-specified render states
DISPLAY->SetSphereEnvironmentMapping( mat.diffuse.m_bSphereMapped );
// render the additive texture with texture unit 2
if( mat.alpha.GetCurrentTexture() )
{
@@ -427,11 +432,6 @@ void Model::DrawPrimitives()
DISPLAY->SetTexture( 1, NULL );
}
// render the diffuse texture with texture unit 1
DISPLAY->SetTexture( 0, mat.diffuse.GetCurrentTexture() );
Actor::SetTextureRenderStates(); // set Actor-specified render states
DISPLAY->SetSphereEnvironmentMapping( mat.diffuse.m_bSphereMapped );
/* go */
DrawMesh( i );