From e92337f82d1f6cbf2b80e12aa02b36980af2691a Mon Sep 17 00:00:00 2001 From: dotsquid Date: Sat, 3 Aug 2013 15:00:32 +0300 Subject: [PATCH] Fixed the crash caused by improper deletion of VBOs in ParticleSystemQuad. --- cocos2dx/particle_nodes/CCParticleSystemQuad.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp b/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp index 3adcd4b58c..e0deffb27b 100644 --- a/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp +++ b/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp @@ -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);