send normals if texture gen is on

This commit is contained in:
Chris Danford
2004-04-17 18:11:03 +00:00
parent ce0590684c
commit 9591bb93e3
+5 -1
View File
@@ -1199,7 +1199,11 @@ void RageCompiledGeometryHWOGL::Draw( int iMeshIndex ) const
// will save some effort transforming these values.
GLboolean bLighting;
glGetBooleanv( GL_LIGHTING, &bLighting );
if( bLighting )
GLboolean bTextureGenS;
glGetBooleanv( GL_TEXTURE_GEN_S, &bLighting );
GLboolean bTextureGenT;
glGetBooleanv( GL_TEXTURE_GEN_T, &bLighting );
if( bLighting || bTextureGenS || bTextureGenT )
{
glEnableClientState(GL_NORMAL_ARRAY);
GLExt::glBindBufferARB( GL_ARRAY_BUFFER_ARB, m_nNormals );