Made the setting of default glNormal and glColor values an compile

option via #ifdef USE_DEFAULT_NORMAL and USE_DEFAULT_COLOR defines respectively.
This commit is contained in:
Robert Osfield 2003-01-20 11:02:27 +00:00
parent 2ac175484a
commit c1831b21f7

View File

@ -493,9 +493,14 @@ void Geometry::drawImplementation(State& state) const
unsigned int secondaryColorIndex = 0;
unsigned int fogCoordIndex = 0;
#if USE_DEFAULT_NORMAL
// if no values are defined for normal and color provide some defaults...
if (_normalBinding==BIND_OFF) glNormal3f(0.0f,0.0f,1.0f);
#endif
#if ISE_DEFAULT_COLOUR
if (_colorBinding==BIND_OFF) glColor4f(1.0f,1.0f,1.0f,1.0f);
#endif
if (areFastPathsUsed())
{