vk_swapchain: Add missing check

This commit is contained in:
GPUCode
2023-09-11 01:34:53 +03:00
parent f17f127f46
commit 868dc0c11f

View File

@@ -182,7 +182,7 @@ void Swapchain::SetPresentMode() {
}
// If vsync is enabled attempt to use mailbox mode in case the user wants to speedup/slowdown
// the game. If mailbox is not available use immediate and warn about it.
if (use_vsync) {
if (use_vsync && Settings::values.frame_limit.GetValue() > 100) {
present_mode = has_mailbox ? vk::PresentModeKHR::eMailbox : vk::PresentModeKHR::eImmediate;
if (!has_mailbox) {
LOG_WARNING(