From 0944b2f95b9971d62f35b9dcc38d28a27e278249 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 20 Nov 2021 20:29:08 +0800 Subject: * mv gui to editor --- Runtime/Scripting/GL/GL.bind.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Runtime/Scripting/GL/GL.bind.cpp') 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(1, 0); - float right = state.GetValue(2, 0); + float x = state.GetValue(1, 0); + float y = state.GetValue(2, 0); float width = state.GetValue(3, 0); float height = state.GetValue(4, 0); - glViewport(left, right, width, height); + glViewport(x, y, width, height); return 0; } -- cgit v1.1-26-g67d0