demo window can close

This commit is contained in:
2025-03-30 13:52:32 -05:00
parent 20ab1501ff
commit d2d5712d20

View File

@@ -59,7 +59,10 @@ void TestImgui::run() {
ImGui_ImplGlfw_NewFrame(); ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame(); ImGui::NewFrame();
ImGui::ShowDemoWindow(&this->demo); if(demo)
ImGui::ShowDemoWindow(&this->demo);
else
app->end();
ImGui::Render(); ImGui::Render();