BACKENDS: Fix create random IniFilename

This was due to a pointer not kept in memory
This commit is contained in:
scemino authored and Eugene Sandulenko committed 2024-03-07 20:08:26 +01:00
1 parent efc6ee8752
commit b917604200
2 files changed
+3 -9

No files matched your search

@@ -475,17 +475,15 @@ void OpenGLSdlGraphics3dManager::initializeOpenGLContext() const {
}
#ifdef USE_IMGUI
if(!_imguiInit) {
if (!_imguiInit) {
// Setup Dear ImGui
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGui_ImplSDL2_InitForOpenGL(_window->getSDLWindow(), _glContext);
ImGui_ImplOpenGL3_Init("#version 110");
ImGui_ImplOpenGL3_Init(nullptr);
ImGui::StyleColorsDark();
ImGuiIO &io = ImGui::GetIO();
Common::Path initPath(ConfMan.getPath("savepath"));
initPath = initPath.appendComponent("imgui.ini");
io.IniFilename = initPath.toString().c_str();
io.IniFilename = nullptr;
}
#endif
#endif
-4
View File
@@ -1,4 +0,0 @@
[Window][Debug##Default]
Pos=60,60
Size=400,400