SDL: GPU: fix build when SDL_GPU_DISABLED is set

From 0685b96469fdd1873c22f6ade9f933bd2dd54acf Mon Sep 17 00:00:00 2001
From: mausimus <[EMAIL REDACTED]>
Date: Mon, 23 Sep 2024 19:33:48 +0900
Subject: [PATCH] GPU: fix build when SDL_GPU_DISABLED is set

---
 src/gpu/SDL_gpu.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/gpu/SDL_gpu.c b/src/gpu/SDL_gpu.c
index abc7f8ec31ce9..cbbc317fbfc35 100644
--- a/src/gpu/SDL_gpu.c
+++ b/src/gpu/SDL_gpu.c
@@ -562,7 +562,11 @@ const char * SDL_GetGPUDriver(int index)
         SDL_InvalidParamError("index");
         return NULL;
     }
+#ifndef SDL_GPU_DISABLED
     return backends[index]->name;
+#else
+    return NULL;
+#endif
 }
 
 const char * SDL_GetGPUDeviceDriver(SDL_GPUDevice *device)