diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp index 401cb168..6f2d5130 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp @@ -2540,12 +2540,12 @@ bool VulkanRenderer::AcquireNextSwapchainImage(bool mainWindow) auto& chainInfo = GetChainInfo(mainWindow); - if (!UpdateSwapchainProperties(mainWindow)) - return false; - if (chainInfo.swapchainImageIndex != -1) return true; // image already reserved + if (!UpdateSwapchainProperties(mainWindow)) + return false; + vkResetFences(m_logicalDevice, 1, &chainInfo.m_imageAvailableFence); VkResult result = vkAcquireNextImageKHR(m_logicalDevice, chainInfo.swapchain, std::numeric_limits::max(), VK_NULL_HANDLE, chainInfo.m_imageAvailableFence, &chainInfo.swapchainImageIndex); if (result != VK_SUCCESS)