diff options
| author | Josh <36666883+Hibyehello@users.noreply.github.com> | 2023-02-15 12:22:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-15 12:22:56 -0600 |
| commit | cd38ed76e2e4026db5c925a3b566116b7724924a (patch) | |
| tree | b649eb7d91d8179bb9dbc3a56093aa497af5ac5c /Source/Core | |
| parent | 546a016dc8220ef856026a72b59414598fd8b11f (diff) | |
Keep Vulkan precedence over OpenGL
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 10 |
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 |
