diff options
| author | 2023-05-18 18:01:01 -0400 | |
|---|---|---|
| committer | 2023-05-18 18:01:01 -0400 | |
| commit | de7c92d7c4dcb65beef3c9248f1a8e5e05afee34 (patch) | |
| tree | 20fe210e3268c63998531ba91e4ac6d0783f9c13 | |
| parent | Merge pull request #10365 from lat9nq/anv_push_descriptor (diff) | |
| download | yuzu-de7c92d7c4dcb65beef3c9248f1a8e5e05afee34.tar.gz yuzu-de7c92d7c4dcb65beef3c9248f1a8e5e05afee34.tar.xz yuzu-de7c92d7c4dcb65beef3c9248f1a8e5e05afee34.zip | |
renderer_vulkan: remove wrong constexpr
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index 1e80ce463..8c0dec590 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp | |||
| @@ -34,8 +34,8 @@ VkSurfaceFormatKHR ChooseSwapSurfaceFormat(vk::Span<VkSurfaceFormatKHR> formats) | |||
| 34 | return found != formats.end() ? *found : formats[0]; | 34 | return found != formats.end() ? *found : formats[0]; |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | static constexpr VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox, | 37 | static VkPresentModeKHR ChooseSwapPresentMode(bool has_imm, bool has_mailbox, |
| 38 | bool has_fifo_relaxed) { | 38 | bool has_fifo_relaxed) { |
| 39 | // Mailbox doesn't lock the application like FIFO (vsync) | 39 | // Mailbox doesn't lock the application like FIFO (vsync) |
| 40 | // FIFO present mode locks the framerate to the monitor's refresh rate | 40 | // FIFO present mode locks the framerate to the monitor's refresh rate |
| 41 | Settings::VSyncMode setting = [has_imm, has_mailbox]() { | 41 | Settings::VSyncMode setting = [has_imm, has_mailbox]() { |