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) <noreply@anthropic.com>
This commit is contained in:
Henrik RydgårdandClaude Opus 5.5 committed 2026-10-19 12:02:22 +02:00
1 parent 6a668eed27
commit 27edb50409
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}