From 03b5f18435b701e7df07e0395f3ae96559dbd4a9 Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Mon, 31 Jan 2022 18:47:21 +0100 Subject: [PATCH] load imgui config from disk only when creating dx instance. --- r5dev/windows/id3dx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/windows/id3dx.cpp b/r5dev/windows/id3dx.cpp index f2863e6c..d32875b1 100644 --- a/r5dev/windows/id3dx.cpp +++ b/r5dev/windows/id3dx.cpp @@ -404,7 +404,6 @@ HRESULT __stdcall Present(IDXGISwapChain* pSwapChain, UINT nSyncInterval, UINT n g_bInitialized = true; g_pSwapChain = pSwapChain; - g_pImGuiConfig->Load(); // Load ImGui configs. } DrawImGui(); @@ -540,6 +539,7 @@ void HIDXGI::debugp() DWORD __stdcall DXSwapChainWorker(LPVOID) { + g_pImGuiConfig->Load(); // Load ImGui configs. GetPresent(); InstallDXHooks(); return true;