summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoBackendBase.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-10-07 19:36:04 +0200
committerGitHub <noreply@github.com>2026-10-07 19:36:04 +0200
commit370585aa68afa7a39e3ac45d3e7da453dbab67f2 (patch)
tree5b0db20e6f8e200d51a01c235f62219d409cc97d /Source/Core/VideoCommon/VideoBackendBase.cpp
parent1ab733dd5ccb38108c97a76b1f79802683e36049 (diff)
parentf708ac2b040637a0c1cbec4c210e8dd7a06043c7 (diff)
Merge pull request #14835 from JoshuaVandaele/vulkan-over-gl
VideoCommon: Prefer Vulkan over OpenGL on Linux
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index 7eeefb7187..4f6eec17d5 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -208,17 +208,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 HAS_OPENGL
- backends.push_back(std::make_unique<OGL::VideoBackend>());
-#endif
#ifdef HAS_VULKAN
-#ifdef __APPLE__
- // Emplace the Vulkan backend at the beginning so it takes precedence over OpenGL.
- // On macOS, we prefer Vulkan over OpenGL due to OpenGL support being deprecated by Apple.
- backends.emplace(backends.begin(), std::make_unique<Vulkan::VideoBackend>());
-#else
backends.push_back(std::make_unique<Vulkan::VideoBackend>());
#endif
+#ifdef HAS_OPENGL
+#ifdef ANDROID
+ // Emplace the OpenGL backend at the beginning so it takes precedence over Vulkan.
+ // On Android, we prefer OpenGL over Vulkan due to OpenGL supporting more features.
+ backends.emplace(backends.begin(), std::make_unique<OGL::VideoBackend>());
+#else
+ backends.push_back(std::make_unique<OGL::VideoBackend>());
+#endif
#endif
#ifdef __APPLE__
backends.emplace(backends.begin(), std::make_unique<Metal::VideoBackend>());