Streamlined the dispatch and activation of attribute dispatchers

This commit is contained in:
Robert Osfield
2016-10-10 20:49:19 +01:00
parent 364c838ea1
commit e14ee80282
4 changed files with 30 additions and 31 deletions

View File

@@ -876,9 +876,6 @@ void SharedGeometry::drawImplementation(osg::RenderInfo& renderInfo) const
arrayDispatchers.activateNormalArray(_normalArray.get());
arrayDispatchers.activateColorArray(_colorArray.get());
// dispatch any attributes that are bound overall
arrayDispatchers.dispatch(osg::Array::BIND_OVERALL,0);
state.lazyDisablingOfVertexAttributes();
// set up arrays