mirror of
https://github.com/edubart/otclient.git
synced 2025-10-18 21:43:26 +02:00
Fix skin texture caching
This commit is contained in:
@@ -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;
|
||||
|
@@ -31,6 +31,7 @@ public:
|
||||
void init();
|
||||
void terminate();
|
||||
|
||||
void clearTexturesCache();
|
||||
TexturePtr getTexture(const std::string& fileName);
|
||||
const TexturePtr& getEmptyTexture() { return m_emptyTexture; }
|
||||
|
||||
|
Reference in New Issue
Block a user