From 29c94d91904807f2b7c557233a22369a7638f53e Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Fri, 8 Dec 2023 11:15:22 +0100 Subject: [PATCH] VulkanWindow: Releave descriptor pool after imgui cleanup The descriptor pool needs to remain valid until we're done with ImGUI. Signed-off-by: Sylvain Munaut --- src/ngscopeclient/VulkanWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ngscopeclient/VulkanWindow.cpp b/src/ngscopeclient/VulkanWindow.cpp index fee98a9a3..723a816bd 100644 --- a/src/ngscopeclient/VulkanWindow.cpp +++ b/src/ngscopeclient/VulkanWindow.cpp @@ -277,11 +277,12 @@ VulkanWindow::~VulkanWindow() m_swapchain = nullptr; m_surface = nullptr; glfwDestroyWindow(m_window); - m_imguiDescriptorPool = nullptr; ImGui_ImplVulkan_Shutdown(); ImGui_ImplGlfw_Shutdown(); ImGui::DestroyContext(m_context); + + m_imguiDescriptorPool = nullptr; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////