SDL: Fix build (#6808)

From e0ee9fa80c4bd8ea7f061830ce81cdc4c06f4a7c Mon Sep 17 00:00:00 2001
From: Sylvain Becker <[EMAIL REDACTED]>
Date: Wed, 14 Dec 2022 09:47:15 +0100
Subject: [PATCH] Fix build (#6808)

---
 src/video/SDL_video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c
index 16472607ebfc..26dde67da526 100644
--- a/src/video/SDL_video.c
+++ b/src/video/SDL_video.c
@@ -225,7 +225,7 @@ static int SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window *window, U
             const int total = SDL_GetNumRenderDrivers();
             for (i = 0; i < total; ++i) {
                 const char *name = SDL_GetRenderDriver(i);
-                if (name && (SDL_strcmp(info.name, "software") != 0)) {
+                if (name && (SDL_strcmp(name, "software") != 0)) {
                     renderer = SDL_CreateRenderer(window, name, 0);
                     if (renderer && (SDL_GetRendererInfo(renderer, &info) == 0) && (info.flags & SDL_RENDERER_ACCELERATED)) {
                         break; /* this will work. */