From 3239ba18797b1aa098056aa0c2a70e250a27a06c Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 24 Oct 2021 13:24:13 +0800 Subject: * port shader --- Editor/EditorMain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Editor/EditorMain.cpp') diff --git a/Editor/EditorMain.cpp b/Editor/EditorMain.cpp index 7ca90ad..7686fa5 100644 --- a/Editor/EditorMain.cpp +++ b/Editor/EditorMain.cpp @@ -29,9 +29,8 @@ void OnRegisterNativeClass(LuaBind::State& state, int cls, std::string clsName, lua_setfield(state, cls, "_type"); } -void InitLuaState() +void InitLuaState(LuaBind::VM& vm) { - LuaBind::VM vm; vm.Setup(); vm.OpenLibs(); @@ -59,7 +58,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR szCmdLine, int sw) { WindowUtil::RegisterClasses(); - InitLuaState(); + LuaBind::VM vm; + InitLuaState(vm); return 0; } \ No newline at end of file -- cgit v1.1-26-g67d0