Backends: clear viewport specific bits in io.BackendFlags on backend Shutdown(). (#6334)

Amend 055e715
This commit is contained in:
ocornut
2023-04-19 16:40:18 +02:00
parent 4f692ba840
commit 1f2b84a654
13 changed files with 13 additions and 12 deletions

View File

@@ -207,7 +207,7 @@ void ImGui_ImplWin32_Shutdown()
io.BackendPlatformName = nullptr;
io.BackendPlatformUserData = nullptr;
io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad);
io.BackendFlags &= ~(ImGuiBackendFlags_HasMouseCursors | ImGuiBackendFlags_HasSetMousePos | ImGuiBackendFlags_HasGamepad | ImGuiBackendFlags_PlatformHasViewports | ImGuiBackendFlags_HasMouseHoveredViewport);
IM_DELETE(bd);
}