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

@@ -113,6 +113,7 @@ void ImGui_ImplOpenGL2_Shutdown()
ImGui_ImplOpenGL2_DestroyDeviceObjects();
io.BackendRendererName = nullptr;
io.BackendRendererUserData = nullptr;
io.BackendFlags &= ~ImGuiBackendFlags_RendererHasViewports;
IM_DELETE(bd);
}