mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-11 07:47:36 +00:00
Backends: Vulkan: removed misleading code incrementing frameindex. (#7834)
Thanks NostraMagister!
This commit is contained in:
parent
c0ae3258f9
commit
b9badb597a
1 changed files with 1 additions and 3 deletions
|
@ -1820,7 +1820,7 @@ static void ImGui_ImplVulkan_RenderWindow(ImGuiViewport* viewport, void*)
|
|||
vd->SwapChainNeedRebuild = false;
|
||||
}
|
||||
|
||||
ImGui_ImplVulkanH_Frame* fd = &wd->Frames[wd->FrameIndex];
|
||||
ImGui_ImplVulkanH_Frame* fd = nullptr;
|
||||
ImGui_ImplVulkanH_FrameSemaphores* fsd = &wd->FrameSemaphores[wd->SemaphoreIndex];
|
||||
{
|
||||
{
|
||||
|
@ -1983,8 +1983,6 @@ static void ImGui_ImplVulkan_SwapBuffers(ImGuiViewport* viewport, void*)
|
|||
{
|
||||
check_vk_result(err);
|
||||
}
|
||||
|
||||
wd->FrameIndex = (wd->FrameIndex + 1) % wd->ImageCount; // This is for the next vkWaitForFences()
|
||||
wd->SemaphoreIndex = (wd->SemaphoreIndex + 1) % wd->SemaphoreCount; // Now we can use the next set of semaphores
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue