diff --git a/src/main.cpp b/src/main.cpp index 52d0de2..9447aed 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -342,6 +342,14 @@ class VulkanApp { IMGUI_CHECKVERSION(); ImGui::CreateContext(); + // Remember to use a reference here, otherwise + // the ImGui::GetIO() function will return a + // copy and the changes won't be saved. + ImGuiIO& imGuiIO = ImGui::GetIO(); + + // Disable writing imgui.ini + imGuiIO.IniFilename = nullptr; + // Setup Dear ImGui style ImGui::StyleColorsDark();