send normals if texture gen is on
This commit is contained in:
@@ -1200,9 +1200,9 @@ void RageCompiledGeometryHWOGL::Draw( int iMeshIndex ) const
|
|||||||
GLboolean bLighting;
|
GLboolean bLighting;
|
||||||
glGetBooleanv( GL_LIGHTING, &bLighting );
|
glGetBooleanv( GL_LIGHTING, &bLighting );
|
||||||
GLboolean bTextureGenS;
|
GLboolean bTextureGenS;
|
||||||
glGetBooleanv( GL_TEXTURE_GEN_S, &bLighting );
|
glGetBooleanv( GL_TEXTURE_GEN_S, &bTextureGenS );
|
||||||
GLboolean bTextureGenT;
|
GLboolean bTextureGenT;
|
||||||
glGetBooleanv( GL_TEXTURE_GEN_T, &bLighting );
|
glGetBooleanv( GL_TEXTURE_GEN_T, &bTextureGenT );
|
||||||
if( bLighting || bTextureGenS || bTextureGenT )
|
if( bLighting || bTextureGenS || bTextureGenT )
|
||||||
{
|
{
|
||||||
glEnableClientState(GL_NORMAL_ARRAY);
|
glEnableClientState(GL_NORMAL_ARRAY);
|
||||||
|
|||||||
Reference in New Issue
Block a user