demo window can close
This commit is contained in:
@@ -59,7 +59,10 @@ void TestImgui::run() {
|
||||
ImGui_ImplGlfw_NewFrame();
|
||||
ImGui::NewFrame();
|
||||
|
||||
ImGui::ShowDemoWindow(&this->demo);
|
||||
if(demo)
|
||||
ImGui::ShowDemoWindow(&this->demo);
|
||||
else
|
||||
app->end();
|
||||
|
||||
ImGui::Render();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user