diff --git a/src/osg/StateSet.cpp b/src/osg/StateSet.cpp index 06ecf84f3..8e6c5aa28 100644 --- a/src/osg/StateSet.cpp +++ b/src/osg/StateSet.cpp @@ -1443,7 +1443,7 @@ void StateSet::setThreadSafeRefUnref(bool threadSafe) void StateSet::compileGLObjects(State& state) const { bool checkForGLErrors = state.getCheckForGLErrors()==osg::State::ONCE_PER_ATTRIBUTE; - if (checkForGLErrors && state.checkGLErrors("before StateSet::compileGLObejcts()")) + if (checkForGLErrors) state.checkGLErrors("before StateSet::compileGLObejcts()"); for(AttributeList::const_iterator itr = _attributeList.begin(); itr!=_attributeList.end();