diff options
author | chai <chaifix@163.com> | 2021-11-20 20:29:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-20 20:29:08 +0800 |
commit | 0944b2f95b9971d62f35b9dcc38d28a27e278249 (patch) | |
tree | 3cd71eff172b394655bf69bf23ec3eb6eb471256 /Runtime/Scripting/GL/GL.bind.cpp | |
parent | bb452bba78dc1870d6316b383180472fe3a8a06a (diff) |
* mv gui to editor
Diffstat (limited to 'Runtime/Scripting/GL/GL.bind.cpp')
-rw-r--r-- | Runtime/Scripting/GL/GL.bind.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Runtime/Scripting/GL/GL.bind.cpp b/Runtime/Scripting/GL/GL.bind.cpp index caf3877..5260378 100644 --- a/Runtime/Scripting/GL/GL.bind.cpp +++ b/Runtime/Scripting/GL/GL.bind.cpp @@ -180,12 +180,12 @@ int Viewport(lua_State* L) { LUA_BIND_STATE(L); - float left = state.GetValue<float>(1, 0); - float right = state.GetValue<float>(2, 0); + float x = state.GetValue<float>(1, 0); + float y = state.GetValue<float>(2, 0); float width = state.GetValue<float>(3, 0); float height = state.GetValue<float>(4, 0); - glViewport(left, right, width, height); + glViewport(x, y, width, height); return 0; } |