diff options
| author | chai <chaifix@163.com> | 2021-10-24 13:24:13 +0800 | 
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-10-24 13:24:13 +0800 | 
| commit | 3239ba18797b1aa098056aa0c2a70e250a27a06c (patch) | |
| tree | cb42710213cd188dd5f7c7841693c9ebe1b1915a /Editor/EditorMain.cpp | |
| parent | 7bf672fd0c6211909d94078b448032b1bd0916ef (diff) | |
* port shader
Diffstat (limited to 'Editor/EditorMain.cpp')
| -rw-r--r-- | Editor/EditorMain.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
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  | 
