diff --git a/cocos/2d/CCParticleSystemQuad.cpp b/cocos/2d/CCParticleSystemQuad.cpp index 5ae6a78fcf..e2c8e3ff82 100644 --- a/cocos/2d/CCParticleSystemQuad.cpp +++ b/cocos/2d/CCParticleSystemQuad.cpp @@ -513,9 +513,12 @@ void ParticleSystemQuad::setupVBO() void ParticleSystemQuad::listenRendererRecreated(EventCustom* event) { + //when comes to foreground in android, _buffersVBO and _VAOname is a wild handle + //before recreating, we need to reset them to 0 memset(_buffersVBO, 0, sizeof(_buffersVBO)); if (Configuration::getInstance()->supportsShareableVAO()) { + _VAOname = 0; setupVBOandVAO(); } else