mirror of https://github.com/axmolengine/axmol.git
closed #2480: Fixed the crash caused by improper deletion of VBOs and VAO in ParticleSystemQuad.
This commit is contained in:
parent
e92337f82d
commit
2df0b056ce
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue