diff --git a/base/VulkanSwapChain.cpp b/base/VulkanSwapChain.cpp index 64bb0d49..368f0e90 100644 --- a/base/VulkanSwapChain.cpp +++ b/base/VulkanSwapChain.cpp @@ -272,7 +272,7 @@ void VulkanSwapChain::create(uint32_t *width, uint32_t *height, bool vsync) swapchainPresentMode = VK_PRESENT_MODE_MAILBOX_KHR; break; } - if ((swapchainPresentMode != VK_PRESENT_MODE_MAILBOX_KHR) && (presentModes[i] == VK_PRESENT_MODE_IMMEDIATE_KHR)) + if (presentModes[i] == VK_PRESENT_MODE_IMMEDIATE_KHR) { swapchainPresentMode = VK_PRESENT_MODE_IMMEDIATE_KHR; } @@ -594,4 +594,4 @@ void VulkanSwapChain::createDirect2DisplaySurface(uint32_t width, uint32_t heigh delete[] pDisplayProperties; delete[] pPlaneProperties; } -#endif \ No newline at end of file +#endif