diff --git a/src/graphics/vulkan/vk_engine.cpp b/src/graphics/vulkan/vk_engine.cpp index 99b94292..9ca63e17 100644 --- a/src/graphics/vulkan/vk_engine.cpp +++ b/src/graphics/vulkan/vk_engine.cpp @@ -248,10 +248,11 @@ void VulkanEngine::init_imgui() { ImGui_ImplVulkan_Init(&init_info); ImGui_ImplVulkan_CreateFontsTexture(); +} - // Store ImGui cleanup info - will be automatically handled when engine destructs - // Note: ImGui cleanup is now handled by storing the descriptor pool - // that will be automatically destroyed when the device is destroyed +VulkanEngine::Imgui::~Imgui() { + ImGui_ImplVulkan_Shutdown(); + vkDestroyDescriptorPool(_device, _imguiPool, nullptr); } void VulkanEngine::init_descriptors() {