mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
VideoBackends:Vulkan: Don't try to present if swapchain acquire failed
This commit is contained in:
parent
c7cbac538a
commit
7e1a9490c0
18 changed files with 64 additions and 31 deletions
|
@ -300,7 +300,7 @@ void CommandBufferManager::WaitForCommandBufferCompletion(u32 index)
|
|||
}
|
||||
|
||||
void CommandBufferManager::SubmitCommandBuffer(bool submit_on_worker_thread,
|
||||
bool wait_for_completion,
|
||||
bool wait_for_completion, bool advance_to_next_frame,
|
||||
VkSwapchainKHR present_swap_chain,
|
||||
uint32_t present_image_index)
|
||||
{
|
||||
|
@ -334,7 +334,7 @@ void CommandBufferManager::SubmitCommandBuffer(bool submit_on_worker_thread,
|
|||
WaitForCommandBufferCompletion(m_current_cmd_buffer);
|
||||
}
|
||||
|
||||
if (present_swap_chain != VK_NULL_HANDLE)
|
||||
if (advance_to_next_frame)
|
||||
{
|
||||
m_current_frame = (m_current_frame + 1) % NUM_FRAMES_IN_FLIGHT;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue