From 2b1904a849b80ccd242eb21669d574e3b3205c3d Mon Sep 17 00:00:00 2001
From: Evan Hemsley <[EMAIL REDACTED]>
Date: Mon, 1 Dec 2025 14:50:23 -0800
Subject: [PATCH] GPU: Prefer D3D12 over Vulkan when available
---
src/gpu/SDL_gpu.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c
index feeec81d539b5..38ac785020601 100644
--- a/src/gpu/SDL_gpu.c
+++ b/src/gpu/SDL_gpu.c
@@ -318,11 +318,11 @@ static const SDL_GPUBootstrap *backends[] = {
#ifdef SDL_GPU_METAL
&MetalDriver,
#endif
-#ifdef SDL_GPU_VULKAN
- &VulkanDriver,
-#endif
#ifdef SDL_GPU_D3D12
&D3D12Driver,
+#endif
+#ifdef SDL_GPU_VULKAN
+ &VulkanDriver,
#endif
NULL
};