From 9591bb93e3bf5bae0d150885a3c1b5860fb1e2af Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 17 Apr 2004 18:11:03 +0000 Subject: [PATCH] send normals if texture gen is on --- stepmania/src/RageDisplay_OGL.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 243ebedc18..8a91dea67d 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -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 );