diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index d198b935d..0a33856e6 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -482,7 +482,7 @@ void Geometry::drawImplementation(State& state) const // Set up secondary color if required. // AttributeBinding secondaryColorBinding = _secondaryColorBinding; - if (secondaryColorBinding!=BIND_OFF && (!s_glSecondaryColor3ubv || s_glSecondaryColor3fv)) + if (secondaryColorBinding!=BIND_OFF && (!s_glSecondaryColor3ubv || !s_glSecondaryColor3fv)) { // switch off if not supported or have a valid data. secondaryColorBinding = BIND_OFF;