Keep Vulkan precedence over OpenGL
This commit is contained in:
parent
546a016dc8
commit
cd38ed76e2
|
@ -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<DX11::VideoBackend>());
|
||||||
backends.push_back(std::make_unique<DX12::VideoBackend>());
|
backends.push_back(std::make_unique<DX12::VideoBackend>());
|
||||||
#endif
|
#endif
|
||||||
#ifdef __APPLE__
|
|
||||||
backends.emplace(backends.begin(), std::make_unique<Metal::VideoBackend>());
|
|
||||||
#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
|
||||||
|
#ifdef __APPLE__
|
||||||
|
backends.emplace(backends.begin(), std::make_unique<Metal::VideoBackend>());
|
||||||
|
#endif
|
||||||
#ifdef HAS_OPENGL
|
#ifdef HAS_OPENGL
|
||||||
backends.push_back(std::make_unique<SW::VideoSoftware>());
|
backends.push_back(std::make_unique<SW::VideoSoftware>());
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue