mirror of https://github.com/axmolengine/axmol.git
closed #2418: Unused spriteframes also need to be removed when purgeCachedData.
This commit is contained in:
parent
c85e8412e5
commit
2aa1fae266
|
@ -452,6 +452,7 @@ void Director::purgeCachedData(void)
|
|||
LabelBMFont::purgeCachedData();
|
||||
if (s_SharedDirector->getOpenGLView())
|
||||
{
|
||||
SpriteFrameCache::getInstance()->removeUnusedSpriteFrames();
|
||||
TextureCache::getInstance()->removeUnusedTextures();
|
||||
}
|
||||
FileUtils::getInstance()->purgeCachedEntries();
|
||||
|
|
Loading…
Reference in New Issue