Skip to content

Commit

Permalink
VulkanWindow: Releave descriptor pool after imgui cleanup
Browse files Browse the repository at this point in the history
The descriptor pool needs to remain valid until we're done with
ImGUI.

Signed-off-by: Sylvain Munaut <[email protected]>
  • Loading branch information
smunaut committed Dec 8, 2023
1 parent ff09487 commit 29c94d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ngscopeclient/VulkanWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 29c94d9

Please sign in to comment.