mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
VideoBackend: Make Metal Default on MacOS
This commit is contained in:
parent
089eab96d7
commit
546a016dc8
@ -238,13 +238,9 @@ const std::vector<std::unique_ptr<VideoBackendBase>>& VideoBackendBase::GetAvail
|
|||||||
backends.push_back(std::make_unique<DX12::VideoBackend>());
|
backends.push_back(std::make_unique<DX12::VideoBackend>());
|
||||||
#endif
|
#endif
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
backends.push_back(std::make_unique<Metal::VideoBackend>());
|
backends.emplace(backends.begin(), std::make_unique<Metal::VideoBackend>());
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAS_VULKAN
|
#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>());
|
backends.push_back(std::make_unique<Vulkan::VideoBackend>());
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user