stop writing imgui.ini

This commit is contained in:
Mars 2024-10-18 13:35:59 -04:00
parent 52123f27ac
commit 4a4939e65b

View file

@ -342,6 +342,14 @@ class VulkanApp {
IMGUI_CHECKVERSION(); IMGUI_CHECKVERSION();
ImGui::CreateContext(); 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 // Setup Dear ImGui style
ImGui::StyleColorsDark(); ImGui::StyleColorsDark();