Browse Source
Merge pull request #10377 from liamwhite/constexpr
renderer_vulkan: remove wrong constexpr
pull/15/merge
Mai
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
src/video_core/renderer_vulkan/vk_swapchain.cpp
|
|
|
@ -34,8 +34,8 @@ VkSurfaceFormatKHR ChooseSwapSurfaceFormat(vk::Span<VkSurfaceFormatKHR> formats) |
|
|
|
return found != formats.end() ? *found : formats[0]; |
|
|
|
} |
|
|
|
|
|
|
|
static constexpr VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox, |
|
|
|
bool has_fifo_relaxed) { |
|
|
|
static VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox, |
|
|
|
bool has_fifo_relaxed) { |
|
|
|
// Mailbox doesn't lock the application like FIFO (vsync)
|
|
|
|
// FIFO present mode locks the framerate to the monitor's refresh rate
|
|
|
|
Settings::VSyncMode setting = [has_imm, has_mailbox]() { |
|
|
|
|