Fixed the crash caused by improper deletion of VBOs in ParticleSystemQuad.

This commit is contained in:
dotsquid 2013-08-03 15:00:32 +03:00 committed by James Chen
parent fe0bae981f
commit e92337f82d
1 changed files with 1 additions and 0 deletions

View File

@ -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);