Fix typo in StateSet::compileGLObjects, causing compilation of attributes to not be executed unless checkForGLErrors is true.

This commit is contained in:
scrawl
2016-11-26 01:09:13 +01:00
parent b04271f93e
commit 1fffafb13a

View File

@@ -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();