issue #3025: change TextureCache::purgeSharedTextureCache() and TextureCache::sharedTextureCache() to do not call deprecate function anymore

This commit is contained in:
Huabing.Xu 2013-11-11 16:04:34 +08:00
parent 3fc16256ab
commit dfcae4ed0d
1 changed files with 1 additions and 2 deletions

View File

@ -81,12 +81,11 @@ void TextureCache::destroyInstance()
TextureCache * TextureCache::sharedTextureCache() TextureCache * TextureCache::sharedTextureCache()
{ {
return TextureCache::getInstance(); return Director::getInstance()->getTextureCache();
} }
void TextureCache::purgeSharedTextureCache() void TextureCache::purgeSharedTextureCache()
{ {
return TextureCache::destroyInstance();
} }
const char* TextureCache::description() const const char* TextureCache::description() const