mirror of https://github.com/axmolengine/axmol.git
Merge pull request #14105 from WenhaiLin/v3.9-rc
ParticleSystemQuad:Fixed incorrectly generate errors "Particle system not enough memory"
This commit is contained in:
commit
05b277752c
|
@ -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