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:
parent
749dc86dd3
commit
e2fb88e187
@ -551,7 +551,7 @@ void VertexArrayState::deleteVertexArrayObject()
|
|||||||
VAS_NOTICE<<" VertexArrayState::deleteVertexArrayObject() "<<_vertexArrayObject<<" "<<_stateObserverSet->getObserverdObject()<<std::endl;
|
VAS_NOTICE<<" VertexArrayState::deleteVertexArrayObject() "<<_vertexArrayObject<<" "<<_stateObserverSet->getObserverdObject()<<std::endl;
|
||||||
|
|
||||||
_ext->glDeleteVertexArrays(1, &_vertexArrayObject);
|
_ext->glDeleteVertexArrays(1, &_vertexArrayObject);
|
||||||
_vertexArrayObject = 0;
|
//_vertexArrayObject = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user