summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosh <36666883+Hibyehello@users.noreply.github.com>2023-02-15 12:22:56 -0600
committerGitHub <noreply@github.com>2023-02-15 12:22:56 -0600
commitcd38ed76e2e4026db5c925a3b566116b7724924a (patch)
treeb649eb7d91d8179bb9dbc3a56093aa497af5ac5c /Source/Core
parent546a016dc8220ef856026a72b59414598fd8b11f (diff)
Keep Vulkan precedence over OpenGL
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index 1d175caa01..b6f4fee2f3 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -237,13 +237,17 @@ const std::vector<std::unique_ptr<VideoBackendBase>>& VideoBackendBase::GetAvail
backends.push_back(std::make_unique<DX11::VideoBackend>());
backends.push_back(std::make_unique<DX12::VideoBackend>());
#endif
-#ifdef __APPLE__
- backends.emplace(backends.begin(), std::make_unique<Metal::VideoBackend>());
-#endif
#ifdef HAS_VULKAN
+#ifdef __APPLE__
+ // Emplace the Vulkan backend at the beginning so it takes precedence over OpenGL.
+ backends.emplace(backends.begin(), std::make_unique<Vulkan::VideoBackend>());
+#else
backends.push_back(std::make_unique<Vulkan::VideoBackend>());
#endif
#endif
+#ifdef __APPLE__
+ backends.emplace(backends.begin(), std::make_unique<Metal::VideoBackend>());
+#endif
#ifdef HAS_OPENGL
backends.push_back(std::make_unique<SW::VideoSoftware>());
#endif