Initialize overlay after full initialization of UI.

This commit is contained in:
Nemirtingas 2019-08-16 18:30:55 +02:00
parent 05f3fa09b3
commit 7b53134512
4 changed files with 7 additions and 4 deletions

View file

@ -96,9 +96,10 @@ void DX9_Hook::prepareForOverlay(IDirect3DDevice9 *pDevice)
ImGuiIO& io = ImGui::GetIO();
io.IniFilename = NULL;
Hook_Manager::Inst().ChangeGameWindow(param.hFocusWindow);
ImGui_ImplWin32_Init(param.hFocusWindow);
ImGui_ImplDX9_Init(pDevice);
Hook_Manager::Inst().ChangeGameWindow(param.hFocusWindow);
initialized = true;
}