diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/UMain.pas | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/base/UMain.pas b/src/base/UMain.pas index 99127b76..0f9daa6e 100644 --- a/src/base/UMain.pas +++ b/src/base/UMain.pas @@ -182,8 +182,10 @@ uses UGraphicClasses, UPluginDefs, UPlatform, - ULuaLog, ULuaGl, + ULuaLog, + ULuaTexture, + ULuaTextGL, UThemes; @@ -390,8 +392,14 @@ begin Log.LogError('Lua init failed','Lua'); luaL_openlibs(Lua); - luaopen_Log(Lua); // Log + Benchmark (Lua) luaopen_gl(Lua); // gl (Lua) + lua_pop(Lua, 1); // remove table from stack + luaopen_Log(Lua); // Log + Benchmark (Lua) + lua_pop(Lua, 1); // remove table from stack + luaopen_TextGL(Lua); // TextGL (Lua) + lua_pop(Lua, 1); // remove table from stack + luaopen_Texture(Lua); // Texture (Lua) + lua_pop(Lua, 1); // remove table from stack Log.BenchmarkEnd(1); Log.LogBenchmark('Initializing Lua', 1); |