SDL: Changed GPU driver names to match renderer driver names

From b17ca32d8cafbd6a6524f49485208842adca66b8 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sat, 31 Aug 2024 10:06:27 -0700
Subject: [PATCH] Changed GPU driver names to match renderer driver names

Fixes https://github.com/libsdl-org/SDL/issues/10650
---
 src/gpu/d3d11/SDL_gpu_d3d11.c   | 2 +-
 src/gpu/d3d12/SDL_gpu_d3d12.c   | 2 +-
 src/gpu/metal/SDL_gpu_metal.m   | 2 +-
 src/gpu/vulkan/SDL_gpu_vulkan.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gpu/d3d11/SDL_gpu_d3d11.c b/src/gpu/d3d11/SDL_gpu_d3d11.c
index 664f66f752bde..6011699eb46de 100644
--- a/src/gpu/d3d11/SDL_gpu_d3d11.c
+++ b/src/gpu/d3d11/SDL_gpu_d3d11.c
@@ -6125,7 +6125,7 @@ static SDL_GPUDevice *D3D11_CreateDevice(bool debugMode, bool preferLowPower, SD
 }
 
 SDL_GPUBootstrap D3D11Driver = {
-    "D3D11",
+    "direct3d11",
     SDL_GPU_DRIVER_D3D11,
     SDL_GPU_SHADERFORMAT_DXBC,
     D3D11_PrepareDriver,
diff --git a/src/gpu/d3d12/SDL_gpu_d3d12.c b/src/gpu/d3d12/SDL_gpu_d3d12.c
index c1e1bed4f60c6..d87772617029f 100644
--- a/src/gpu/d3d12/SDL_gpu_d3d12.c
+++ b/src/gpu/d3d12/SDL_gpu_d3d12.c
@@ -8185,7 +8185,7 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
 }
 
 SDL_GPUBootstrap D3D12Driver = {
-    "D3D12",
+    "direct3d12",
     SDL_GPU_DRIVER_D3D12,
     SDL_GPU_SHADERFORMAT_DXIL,
     D3D12_PrepareDriver,
diff --git a/src/gpu/metal/SDL_gpu_metal.m b/src/gpu/metal/SDL_gpu_metal.m
index 7e44bfb0d56fa..fdce2e3f4c532 100644
--- a/src/gpu/metal/SDL_gpu_metal.m
+++ b/src/gpu/metal/SDL_gpu_metal.m
@@ -3974,7 +3974,7 @@ static void METAL_INTERNAL_DestroyBlitResources(
 }
 
 SDL_GPUBootstrap MetalDriver = {
-    "Metal",
+    "metal",
     SDL_GPU_DRIVER_METAL,
     SDL_GPU_SHADERFORMAT_MSL | SDL_GPU_SHADERFORMAT_METALLIB,
     METAL_PrepareDriver,
diff --git a/src/gpu/vulkan/SDL_gpu_vulkan.c b/src/gpu/vulkan/SDL_gpu_vulkan.c
index 9f239103c1514..2fb613596c026 100644
--- a/src/gpu/vulkan/SDL_gpu_vulkan.c
+++ b/src/gpu/vulkan/SDL_gpu_vulkan.c
@@ -11788,7 +11788,7 @@ static SDL_GPUDevice *VULKAN_CreateDevice(bool debugMode, bool preferLowPower, S
 }
 
 SDL_GPUBootstrap VulkanDriver = {
-    "Vulkan",
+    "vulkan",
     SDL_GPU_DRIVER_VULKAN,
     SDL_GPU_SHADERFORMAT_SPIRV,
     VULKAN_PrepareDriver,