mirror of https://github.com/axmolengine/axmol.git
Fixed the crash caused by improper deletion of VBOs in ParticleSystemQuad.
This commit is contained in:
parent
fe0bae981f
commit
e92337f82d
|
@ -596,6 +596,7 @@ void ParticleSystemQuad::setBatchNode(ParticleBatchNode * batchNode)
|
|||
CC_SAFE_FREE(_indices);
|
||||
|
||||
glDeleteBuffers(2, &_buffersVBO[0]);
|
||||
memset(_buffersVBO, 0, sizeof(_buffersVBO));
|
||||
#if CC_TEXTURE_ATLAS_USE_VAO
|
||||
glDeleteVertexArrays(1, &_VAOname);
|
||||
GL::bindVAO(0);
|
||||
|
|
Loading…
Reference in New Issue