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 /Runtime/Lua/LuaBind/LuaBindVM.cpp | |
parent | 7bf672fd0c6211909d94078b448032b1bd0916ef (diff) |
* port shader
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindVM.cpp')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindVM.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindVM.cpp b/Runtime/Lua/LuaBind/LuaBindVM.cpp index e454929..7a56013 100644 --- a/Runtime/Lua/LuaBind/LuaBindVM.cpp +++ b/Runtime/Lua/LuaBind/LuaBindVM.cpp @@ -62,7 +62,10 @@ namespace LuaBind void VM::SetCurThread(lua_State* cur) { - mCurThread = cur; + if (this) + { + mCurThread = cur; + } } lua_State* VM::GetCurThread() |