send normals if texture gen is on

This commit is contained in:
Chris Danford
2004-04-17 20:07:39 +00:00
parent 6ae9e6b035
commit 3df5082068
+2 -2
View File
@@ -1200,9 +1200,9 @@ void RageCompiledGeometryHWOGL::Draw( int iMeshIndex ) const
GLboolean bLighting;
glGetBooleanv( GL_LIGHTING, &bLighting );
GLboolean bTextureGenS;
glGetBooleanv( GL_TEXTURE_GEN_S, &bLighting );
glGetBooleanv( GL_TEXTURE_GEN_S, &bTextureGenS );
GLboolean bTextureGenT;
glGetBooleanv( GL_TEXTURE_GEN_T, &bLighting );
glGetBooleanv( GL_TEXTURE_GEN_T, &bTextureGenT );
if( bLighting || bTextureGenS || bTextureGenT )
{
glEnableClientState(GL_NORMAL_ARRAY);