Fix issues with de/re-initialisation

This commit is contained in:
2023-09-18 15:13:14 +02:00
parent de75b6c724
commit 090e75a1ca
5 changed files with 7 additions and 3 deletions

View File

@@ -60,8 +60,10 @@ namespace openVulkanoCpp
{
ImGuiIO& io = ImGui::GetIO();
#ifndef __APPLE__
ImGui::DestroyPlatformWindows();
#endif
io.BackendPlatformName = nullptr;
io.BackendPlatformUserData = nullptr;
io.BackendFlags = ImGuiBackendFlags_None;