summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2023-05-19 00:04:07 +0200
committerGitHub <noreply@github.com>2023-05-19 00:04:07 +0200
commitf6c55078739920d0f9881bb21262d0067038eab1 (patch)
tree20fe210e3268c63998531ba91e4ac6d0783f9c13
parentMerge pull request #10365 from lat9nq/anv_push_descriptor (diff)
parentrenderer_vulkan: remove wrong constexpr (diff)
downloadyuzu-f6c55078739920d0f9881bb21262d0067038eab1.tar
yuzu-f6c55078739920d0f9881bb21262d0067038eab1.tar.gz
yuzu-f6c55078739920d0f9881bb21262d0067038eab1.tar.bz2
yuzu-f6c55078739920d0f9881bb21262d0067038eab1.tar.lz
yuzu-f6c55078739920d0f9881bb21262d0067038eab1.tar.xz
yuzu-f6c55078739920d0f9881bb21262d0067038eab1.tar.zst
yuzu-f6c55078739920d0f9881bb21262d0067038eab1.zip
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.cpp4
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)
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]() {