From b43b333d2521b2de2c55598065ef851c9a37aa81 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 15 Nov 2024 08:32:49 -0800
Subject: [PATCH] Moved the GPU renderer to the bottom of the list
We've gotten the feedback we wanted from having it first, so we'll move the other renderers back up for the widest compatibility across devices and platforms.
Fixes https://github.com/libsdl-org/SDL/issues/11468
---
src/render/SDL_render.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 17cc1e1854eb1..7ca325a9b013b 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -107,10 +107,6 @@ this should probably be removed at some point in the future. --ryan. */
#ifndef SDL_RENDER_DISABLED
static const SDL_RenderDriver *render_drivers[] = {
-// Temporarily list the GPU renderer first so we get testing feedback
-#ifdef SDL_VIDEO_RENDER_GPU
- &GPU_RenderDriver,
-#endif
#ifdef SDL_VIDEO_RENDER_D3D11
&D3D11_RenderDriver,
#endif
@@ -141,6 +137,9 @@ static const SDL_RenderDriver *render_drivers[] = {
#ifdef SDL_VIDEO_RENDER_VULKAN
&VULKAN_RenderDriver,
#endif
+#ifdef SDL_VIDEO_RENDER_GPU
+ &GPU_RenderDriver,
+#endif
#ifdef SDL_VIDEO_RENDER_SW
&SW_RenderDriver,
#endif