mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-22 01:54:21 +00:00
parent
66e08b6575
commit
5b5d5b049d
2 changed files with 4 additions and 1 deletions
|
|
@ -2044,7 +2044,10 @@ static void ImGui_ImplVulkan_DestroyWindow(ImGuiViewport* viewport)
|
|||
{
|
||||
ImGui_ImplVulkan_InitInfo* v = &bd->VulkanInitInfo;
|
||||
if (vd->WindowOwned)
|
||||
{
|
||||
ImGui_ImplVulkanH_DestroyWindow(v->Instance, v->Device, &vd->Window, v->Allocator);
|
||||
vkDestroySurfaceKHR(v->Instance, vd->Window.Surface, v->Allocator);
|
||||
}
|
||||
ImGui_ImplVulkan_DestroyWindowRenderBuffers(v->Device, &vd->RenderBuffers, v->Allocator);
|
||||
IM_DELETE(vd);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue