mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Use cached ImGui IO reference
This commit is contained in:
parent
c253fd8b44
commit
19d21300a3
@ -85,10 +85,10 @@ void SetupImGui()
|
||||
ImGui::CreateContext();
|
||||
ImGui_ImplWin32_Init(*g_pGameWindow);
|
||||
ImGui_ImplDX11_Init(*g_ppGameDevice, *g_ppImmediateContext);
|
||||
ImGui::GetIO().ImeWindowHandle = *g_pGameWindow;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
ImGuiIO& io = ImGui::GetIO();
|
||||
io.ImeWindowHandle = *g_pGameWindow;
|
||||
io.ConfigFlags |= ImGuiConfigFlags_IsSRGB;
|
||||
|
||||
s_bImGuiInitialized = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user