summaryrefslogtreecommitdiff
path: root/Editor/Scripting/GUI/EditorGUI.bind.cpp
diff options
context:
space:
mode:
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;
}