Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11569 from Hibyehello/patch-1
VideoBackend: Make Metal Default on MacOS
  • Loading branch information
phire committed Feb 16, 2023
2 parents 19bf13d + cd38ed7 commit 6038a6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Core/VideoCommon/VideoBackendBase.cpp
Expand Up @@ -237,9 +237,6 @@ 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.push_back(std::make_unique<Metal::VideoBackend>());
#endif
#ifdef HAS_VULKAN
#ifdef __APPLE__
// Emplace the Vulkan backend at the beginning so it takes precedence over OpenGL.
Expand All @@ -248,6 +245,9 @@ const std::vector<std::unique_ptr<VideoBackendBase>>& VideoBackendBase::GetAvail
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
Expand Down

0 comments on commit 6038a6e

Please sign in to comment.