SDL: Try to create an accelerated renderer for the window surface even if SDL_HINT_RENDER_DRIVER is "software" (2cdb4)

From 2cdb419a21ddbde35f86a084cfeb927bfef45d7b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 5 Jul 2024 08:18:45 -0700
Subject: [PATCH] Try to create an accelerated renderer for the window surface
 even if SDL_HINT_RENDER_DRIVER is "software"

This case is properly handled inside SDL_CreateWindowTexture()

Fixes https://github.com/libsdl-org/SDL/issues/10155

(cherry picked from commit c7ed78a9ef229c569e3999d3e2e7067ee4cfe056)
(cherry picked from commit a4cbba1276b7270dd9f8ee4d5e0c321e57093e03)
---
 src/video/SDL_video.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index c1a2dbdd6a1d9..1df2359ea7feb 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -2688,14 +2688,6 @@ static SDL_bool ShouldAttemptTextureFramebuffer(void)
         attempt_texture_framebuffer = SDL_FALSE;
 #endif
     }
-
-    if (attempt_texture_framebuffer) {
-        /* Using a software renderer will try to display on a window surface, so avoid recursion here */
-        hint = SDL_GetHint(SDL_HINT_RENDER_DRIVER);
-        if (hint && SDL_strcasecmp(hint, "software") == 0) {
-            attempt_texture_framebuffer = SDL_FALSE;
-        }
-    }
     return attempt_texture_framebuffer;
 }