diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index d4b3e1198..720137685 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -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()) {