diff --git a/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp b/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp index e7220d551d6..262a95bf34d 100644 --- a/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp +++ b/backends/graphics3d/openglsdl/openglsdl-graphics3d.cpp @@ -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 diff --git a/imgui.ini b/imgui.ini deleted file mode 100644 index 9930887f247..00000000000 --- a/imgui.ini +++ /dev/null @@ -1,4 +0,0 @@ -[Window][Debug##Default] -Pos=60,60 -Size=400,400 -