mirror of https://github.com/axmolengine/axmol.git
reset _VAOname to 0 before recreating on android
This commit is contained in:
parent
a1654e5714
commit
7f61a3d97b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue