mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
Fix skin texture caching
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include <framework/util/crypt.h>
|
||||
#include <framework/core/resourcemanager.h>
|
||||
#include <framework/graphics/particlemanager.h>
|
||||
#include <framework/graphics/texturemanager.h>
|
||||
|
||||
void Application::registerLuaFunctions()
|
||||
{
|
||||
@@ -225,6 +226,10 @@ void Application::registerLuaFunctions()
|
||||
g_lua.bindSingletonFunction("g_graphics", "getRenderer", &Graphics::getRenderer, &g_graphics);
|
||||
g_lua.bindSingletonFunction("g_graphics", "getVersion", &Graphics::getVersion, &g_graphics);
|
||||
|
||||
// Textures
|
||||
g_lua.registerSingletonClass("g_textures");
|
||||
g_lua.bindSingletonFunction("g_textures", "clearTexturesCache", &TextureManager::clearTexturesCache, &g_textures);
|
||||
|
||||
// UI
|
||||
g_lua.registerSingletonClass("g_ui");
|
||||
g_lua.bindSingletonFunction("g_ui", "clearStyles", &UIManager::clearStyles, &g_ui);
|
||||
|
||||
Reference in New Issue
Block a user