Added intialization of the VAO in Geometry::compileGLObjects() and refined the invocation of updates to the VAO

This commit is contained in:
Robert Osfield
2016-08-03 10:35:51 +01:00
parent 078598872f
commit 4131d2da34
4 changed files with 22 additions and 19 deletions

View File

@@ -346,20 +346,6 @@ VertexArrayState::VertexArrayState(osg::GLExtensions* ext):
{
}
#if 0
osg::GLBufferObject* VertexArrayState::getGLBufferObject(osg::Array* array)
{
if (_ext->isBufferObjectSupported && array->getBufferObject())
{
return array->getBufferObject()->getOrCreateGLBufferObject(_ext->contextID);
}
else
{
return 0;
}
}
#endif
void VertexArrayState::generateVretexArrayObject()
{
_ext->glGenVertexArrays(1, &_vertexArrayObject);