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:
parent
2ac175484a
commit
c1831b21f7
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user