From 2df0b056ce49eb329c473dacc84d482cf471c829 Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 5 Aug 2013 15:42:01 +0800 Subject: [PATCH] closed #2480: Fixed the crash caused by improper deletion of VBOs and VAO 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 e0deffb27b..6740cf3c22 100644 --- a/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp +++ b/cocos2dx/particle_nodes/CCParticleSystemQuad.cpp @@ -600,6 +600,7 @@ void ParticleSystemQuad::setBatchNode(ParticleBatchNode * batchNode) #if CC_TEXTURE_ATLAS_USE_VAO glDeleteVertexArrays(1, &_VAOname); GL::bindVAO(0); + _VAOname = 0; #endif } }