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; } ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////