Fix skin texture caching

This commit is contained in:
Eduardo Bart
2012-07-14 18:30:00 -03:00
parent 36e5a5a92f
commit ec5106e7ce
4 changed files with 12 additions and 0 deletions

View File

@@ -50,6 +50,11 @@ void TextureManager::terminate()
m_emptyTexture = nullptr;
}
void TextureManager::clearTexturesCache()
{
m_textures.clear();
}
TexturePtr TextureManager::getTexture(const std::string& fileName)
{
TexturePtr texture;

View File

@@ -31,6 +31,7 @@ public:
void init();
void terminate();
void clearTexturesCache();
TexturePtr getTexture(const std::string& fileName);
const TexturePtr& getEmptyTexture() { return m_emptyTexture; }