closed #2480: Fixed the crash caused by improper deletion of VBOs and VAO in ParticleSystemQuad.

This commit is contained in:
James Chen 2013-08-05 15:42:01 +08:00
parent e92337f82d
commit 2df0b056ce
1 changed files with 1 additions and 0 deletions

View File

@ -600,6 +600,7 @@ void ParticleSystemQuad::setBatchNode(ParticleBatchNode * batchNode)
#if CC_TEXTURE_ATLAS_USE_VAO #if CC_TEXTURE_ATLAS_USE_VAO
glDeleteVertexArrays(1, &_VAOname); glDeleteVertexArrays(1, &_VAOname);
GL::bindVAO(0); GL::bindVAO(0);
_VAOname = 0;
#endif #endif
} }
} }