vk_swapchain: Add missing check
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user