@ -1551,6 +1551,11 @@ static void ImGui_ImplVulkan_RenderWindow(ImGuiViewport* viewport, void*)
ImGui_ImplVulkanH_Frame * fd = & wd - > Frames [ wd - > FrameIndex ] ;
ImGui_ImplVulkanH_Frame * fd = & wd - > Frames [ wd - > FrameIndex ] ;
ImGui_ImplVulkanH_FrameSemaphores * fsd = & wd - > FrameSemaphores [ wd - > SemaphoreIndex ] ;
ImGui_ImplVulkanH_FrameSemaphores * fsd = & wd - > FrameSemaphores [ wd - > SemaphoreIndex ] ;
{
{
{
err = vkAcquireNextImageKHR ( v - > Device , wd - > Swapchain , UINT64_MAX , fsd - > ImageAcquiredSemaphore , VK_NULL_HANDLE , & wd - > FrameIndex ) ;
check_vk_result ( err ) ;
fd = & wd - > Frames [ wd - > FrameIndex ] ;
}
for ( ; ; )
for ( ; ; )
{
{
err = vkWaitForFences ( v - > Device , 1 , & fd - > Fence , VK_TRUE , 100 ) ;
err = vkWaitForFences ( v - > Device , 1 , & fd - > Fence , VK_TRUE , 100 ) ;
@ -1558,11 +1563,6 @@ static void ImGui_ImplVulkan_RenderWindow(ImGuiViewport* viewport, void*)
if ( err = = VK_TIMEOUT ) continue ;
if ( err = = VK_TIMEOUT ) continue ;
check_vk_result ( err ) ;
check_vk_result ( err ) ;
}
}
{
err = vkAcquireNextImageKHR ( v - > Device , wd - > Swapchain , UINT64_MAX , fsd - > ImageAcquiredSemaphore , VK_NULL_HANDLE , & wd - > FrameIndex ) ;
check_vk_result ( err ) ;
fd = & wd - > Frames [ wd - > FrameIndex ] ;
}
{
{
err = vkResetCommandPool ( v - > Device , fd - > CommandPool , 0 ) ;
err = vkResetCommandPool ( v - > Device , fd - > CommandPool , 0 ) ;
check_vk_result ( err ) ;
check_vk_result ( err ) ;