mirror of
https://github.com/ocornut/imgui.git
synced 2024-12-01 02:37:24 +01:00
Removed redundant VkResult plugged into VkPresentInfoKHR pResults attribute. This is only meaningful when we present directly to multiple swapchains. In that case we can an VkResult per swapchain.
This commit is contained in:
parent
eaae754211
commit
a9add1ce63
@ -572,7 +572,6 @@ static void frame_end()
|
|||||||
check_vk_result(err);
|
check_vk_result(err);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
VkResult res;
|
|
||||||
VkSwapchainKHR swapchains[1] = {g_Swapchain};
|
VkSwapchainKHR swapchains[1] = {g_Swapchain};
|
||||||
uint32_t indices[1] = {g_BackBufferIndex};
|
uint32_t indices[1] = {g_BackBufferIndex};
|
||||||
VkPresentInfoKHR info = {};
|
VkPresentInfoKHR info = {};
|
||||||
@ -580,10 +579,8 @@ static void frame_end()
|
|||||||
info.swapchainCount = 1;
|
info.swapchainCount = 1;
|
||||||
info.pSwapchains = swapchains;
|
info.pSwapchains = swapchains;
|
||||||
info.pImageIndices = indices;
|
info.pImageIndices = indices;
|
||||||
info.pResults = &res;
|
|
||||||
err = vkQueuePresentKHR(g_Queue, &info);
|
err = vkQueuePresentKHR(g_Queue, &info);
|
||||||
check_vk_result(err);
|
check_vk_result(err);
|
||||||
check_vk_result(res);
|
|
||||||
}
|
}
|
||||||
g_FrameIndex = (g_FrameIndex+1) % IMGUI_VK_QUEUED_FRAMES;
|
g_FrameIndex = (g_FrameIndex+1) % IMGUI_VK_QUEUED_FRAMES;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user