mirror of https://github.com/axmolengine/axmol.git
ParticleSystemQuad:Fixed incorrectly generate errors "Particle system: not enough memory"
This commit is contained in:
parent
fe4759e71d
commit
05c235f9fe
|
@ -480,7 +480,7 @@ void ParticleSystemQuad::setTotalParticles(int tp)
|
||||||
size_t indicesSize = sizeof(_indices[0]) * tp * 6 * 1;
|
size_t indicesSize = sizeof(_indices[0]) * tp * 6 * 1;
|
||||||
|
|
||||||
_particleData.release();
|
_particleData.release();
|
||||||
if (_particleData.init(tp))
|
if (!_particleData.init(tp))
|
||||||
{
|
{
|
||||||
CCLOG("Particle system: not enough memory");
|
CCLOG("Particle system: not enough memory");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue