From 9f4260e54dc3f34c520648c035b2abba4d53c654 Mon Sep 17 00:00:00 2001 From: knightlyj Date: Thu, 1 Feb 2018 01:51:27 +0800 Subject: [PATCH] Example bug fixed: ImGui::End() should be called whether ImGui::Begin() return true or false (#1325) --- examples/common/example-glue.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/common/example-glue.cpp b/examples/common/example-glue.cpp index b2dc8bda0..b6b3d4562 100644 --- a/examples/common/example-glue.cpp +++ b/examples/common/example-glue.cpp @@ -384,9 +384,8 @@ void showExampleDialog(entry::AppI* _app, const char* _errorText) ImGui::EndChild(); } } - - ImGui::End(); } + ImGui::End(); } ImGui::End();