Merge pull request #169 from scrawl/stateset-fix

Fix flow control issue in StateSet::compileGLObjects
This commit is contained in:
OpenSceneGraph git repository
2016-11-26 11:45:07 +00:00
committed by GitHub

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