Fix typo in StateSet::compileGLObjects, causing compilation of attributes to not be executed unless checkForGLErrors is true.
This commit is contained in:
parent
46df1fd141
commit
29049ea238
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user