Skip to content

Commit

Permalink
at this point present is always succesful even when result != VK_SUCCESS
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Aug 14, 2024
1 parent 4e6589f commit 128f664
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2781,11 +2781,8 @@ void VulkanRenderer::SwapBuffer(bool mainWindow)
if(result == VK_ERROR_OUT_OF_DATE_KHR || result == VK_SUBOPTIMAL_KHR)
chainInfo.m_shouldRecreate = true;

if(result == VK_SUCCESS)
{
chainInfo.m_queueDepth++;
chainInfo.m_presentId++;
}
chainInfo.m_queueDepth++;
chainInfo.m_presentId++;


chainInfo.hasDefinedSwapchainImage = false;
Expand Down

0 comments on commit 128f664

Please sign in to comment.