summaryrefslogtreecommitdiff
path: root/Editor/Scripting/GUI/EditorGUI.bind.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-19 15:33:48 +0800
committerchai <chaifix@163.com>2021-11-19 15:33:48 +0800
commit1cd31d14c95f9d52e30fbc611df5da4b46f048d9 (patch)
tree86dbda850f9b8ed26b152c6521adc0a777d6563a /Editor/Scripting/GUI/EditorGUI.bind.cpp
parent2ab7fad7b308debba0aacbf76831569f360d19a0 (diff)
*misc
Diffstat (limited to 'Editor/Scripting/GUI/EditorGUI.bind.cpp')
-rw-r--r--Editor/Scripting/GUI/EditorGUI.bind.cpp2
1 files changed, 2 insertions, 0 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;
}