mirror of https://github.com/axmolengine/axmol.git
fixed #1224: Wrote some comments in CCParticleSystem.
This commit is contained in:
parent
f7ffdd757c
commit
d5f52335d5
|
@ -308,7 +308,7 @@ bool CCParticleSystem::initWithDictionary(CCDictionary *dictionary)
|
|||
CCAssert( deflated != NULL, "CCParticleSystem: error ungzipping textureImageData");
|
||||
CC_BREAK_IF(!deflated);
|
||||
|
||||
// don't delete image, VolatileTexture use it in CCTextureCache::sharedTextureCache()->addUIImage()
|
||||
// For android, we should retain it in VolatileTexture::addCCImage which invoked in CCTextureCache::sharedTextureCache()->addUIImage()
|
||||
image = new CCImage();
|
||||
bool isOK = image->initWithImageData(deflated, deflatedLen);
|
||||
CCAssert(isOK, "CCParticleSystem: error init image with Data");
|
||||
|
|
Loading…
Reference in New Issue