From 27edb5040915c4fedcad4d029d9bee13741d45a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 18 Oct 2026 00:13:43 +0200 Subject: [PATCH] Config: Don't reset a saved Metal backend to the default The range check predates GPUBackend::METAL (4), so the setting was lost on every load, and the app came back up on Vulkan. Co-Authored-By: Claude Opus 5.5 (1M context) --- Core/Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 282e06c9c8..04955b36c0 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -1611,7 +1611,7 @@ void Config::PostLoadCleanup() { if (iGPUBackend == 1) { // d3d9, no longer supported. Fall back to D3D11. iGPUBackend = (int)GPUBackend::DIRECT3D11; - } else if (iGPUBackend < 0 || iGPUBackend > 3) { + } else if (iGPUBackend < 0 || iGPUBackend > (int)GPUBackend::METAL) { iGPUBackend = (int)DefaultGPUBackend(); }