From ce46db87b0264f139934010601c91410af3d264e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 25 Mar 2003 13:01:34 +0000 Subject: [PATCH] Spotted by Brede - missing ! --- src/osg/Geometry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;