Added lazy setting of arrays for osg::Geometry using vertex_array_object

This commit is contained in:
Robert Osfield
2016-08-02 12:28:05 +01:00
parent 4b4cd13d31
commit 078598872f
5 changed files with 39 additions and 10 deletions

View File

@@ -341,7 +341,8 @@ VertexArrayState::VertexArrayState(osg::GLExtensions* ext):
_ext(ext),
_vertexArrayObject(0),
_currentVBO(0),
_currentEBO(0)
_currentEBO(0),
_requiresSetArrays(true)
{
}