From d9f486d210c3d8a993146143b5412e64c29c91ed Mon Sep 17 00:00:00 2001 From: goeiecool9999 <7033575+goeiecool9999@users.noreply.github.com> Date: Wed, 1 Nov 2023 11:24:50 +0100 Subject: [PATCH] fix yet another issue that would freeze presentation --- src/Cafe/HW/Latte/Renderer/Vulkan/SwapchainInfoVk.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/SwapchainInfoVk.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/SwapchainInfoVk.cpp index 687c95f88..7796ae972 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/SwapchainInfoVk.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/SwapchainInfoVk.cpp @@ -377,7 +377,8 @@ VkExtent2D SwapchainInfoVk::ChooseSwapExtent(const VkSurfaceCapabilitiesKHR& cap VkPresentModeKHR SwapchainInfoVk::ChoosePresentMode(const std::vector& modes) { const auto vsyncState = (VSync)GetConfig().vsync.GetValue(); - LatteTiming_DisableHostDrivenVSync(); + if(mainWindow) + LatteTiming_DisableHostDrivenVSync(); if (vsyncState == VSync::MAILBOX) { if (std::find(modes.cbegin(), modes.cend(), VK_PRESENT_MODE_MAILBOX_KHR) != modes.cend()) @@ -393,7 +394,8 @@ VkPresentModeKHR SwapchainInfoVk::ChoosePresentMode(const std::vector