From 3df508206855fe2a1f016335b5a645b1eaec7ef9 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 17 Apr 2004 20:07:39 +0000 Subject: [PATCH] send normals if texture gen is on --- stepmania/src/RageDisplay_OGL.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageDisplay_OGL.cpp b/stepmania/src/RageDisplay_OGL.cpp index 8a91dea67d..26e9c349e3 100644 --- a/stepmania/src/RageDisplay_OGL.cpp +++ b/stepmania/src/RageDisplay_OGL.cpp @@ -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);