Removed resetting of the pointer state.

This commit is contained in:
Robert Osfield 2016-08-04 17:15:29 +01:00
parent 83f73df814
commit 98344157c0

View File

@ -648,17 +648,14 @@ void Drawable::draw(RenderInfo& renderInfo) const
vas->setRequiresSetArrays(getDataVariance()==osg::Object::DYNAMIC);
}
if (vas->getRequiresSetArrays())
{
vas->resetBufferObjectPointers();
}
State::SetCurrentVertexArrayStateProxy setVASProxy(state, vas);
vas->bindVertexArrayObject();
drawInner(renderInfo);
// vas->setRequiresSetArrays(getDataVariance()==osg::Object::DYNAMIC);
return;
}
#endif