summaryrefslogtreecommitdiff
path: root/Editor/Scripting
diff options
context:
space:
mode:
Diffstat (limited to 'Editor/Scripting')
-rw-r--r--Editor/Scripting/GUI/EditorGUI.bind.cpp2
-rw-r--r--Editor/Scripting/Window/ContainerWindow.bind.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/Editor/Scripting/GUI/EditorGUI.bind.cpp b/Editor/Scripting/GUI/EditorGUI.bind.cpp
index b51e019..e0b94e0 100644
--- a/Editor/Scripting/GUI/EditorGUI.bind.cpp
+++ b/Editor/Scripting/GUI/EditorGUI.bind.cpp
@@ -80,6 +80,8 @@ static int Text(lua_State* L)
const UITextMesh* tm = g_TextMeshGenerator.GetTextMesh(str, font, pixelSize, lineHeight, color, (ETextAnchor)anchor, (ETextAlignment)alignment, wordwrap, preferred);
tm->Draw();
+ WipeGLError();
+
return 0;
}
diff --git a/Editor/Scripting/Window/ContainerWindow.bind.cpp b/Editor/Scripting/Window/ContainerWindow.bind.cpp
index f459c85..f3a8cc7 100644
--- a/Editor/Scripting/Window/ContainerWindow.bind.cpp
+++ b/Editor/Scripting/Window/ContainerWindow.bind.cpp
@@ -62,7 +62,7 @@ LUA_BIND_IMPL_METHOD(ContainerWindow, _GetSize)
{
LUA_BIND_PREPARE(L, ContainerWindow);
- state.PushLuaObject(self->GetSize());
+ state.PushLuaObject<Vector2f>(self->GetSize());
return 1;
}