mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
BACKENDS: Fix create random IniFilename
This was due to a pointer not kept in memory
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user