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::NewFrame();
if(demo)
ImGui::ShowDemoWindow(&this->demo);
else
app->end();
ImGui::Render();