device wait idle

This commit is contained in:
Sri Sham Haran 2022-09-26 23:14:10 +08:00
parent 240e5e9394
commit b375ab9a50
1 changed files with 2 additions and 0 deletions

View File

@ -293,6 +293,8 @@ namespace SHADE
imguiCommandBuffer->EndRecording();
gfxSystem->GetQueue()->SubmitCommandBuffer({ imguiCommandBuffer }, {}, {}, vk::PipelineStageFlagBits::eNone, {});
gfxSystem->GetDevice()->WaitIdle();
ImGui_ImplVulkan_DestroyFontUploadObjects();
renderGraph->GetNode("ImGui Node")->GetSubpass("ImGui Draw")->AddExteriorDrawCalls([](Handle<SHVkCommandBuffer>& cmd) {