Commented out the reset of the _vertexArrayObject = 0 as it was break later State::resetCurrentVertexArrayStateOnMatch() calls ability to reset the State::_currentVAO when required.

This commit is contained in:
Robert Osfield 2019-01-23 15:40:13 +00:00
parent 749dc86dd3
commit e2fb88e187

View File

@ -551,7 +551,7 @@ void VertexArrayState::deleteVertexArrayObject()
VAS_NOTICE<<" VertexArrayState::deleteVertexArrayObject() "<<_vertexArrayObject<<" "<<_stateObserverSet->getObserverdObject()<<std::endl;
_ext->glDeleteVertexArrays(1, &_vertexArrayObject);
_vertexArrayObject = 0;
//_vertexArrayObject = 0;
}
}