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 committed by Robert Osfield
parent 46df1fd141
commit 29049ea238

View File

@ -1432,6 +1432,8 @@ 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()");
for(AttributeList::const_iterator itr = _attributeList.begin();
itr!=_attributeList.end();
++itr)