mirror of https://github.com/axmolengine/axmol.git
issue #3025: change TextureCache::purgeSharedTextureCache() and TextureCache::sharedTextureCache() to do not call deprecate function anymore
This commit is contained in:
parent
3fc16256ab
commit
dfcae4ed0d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue