SDL: render: Renamed SDL_GetTextureRenderer to SDL_GetRendererFromTexture.

From 82f2c4d58140be61e5508765dd734368bb31e152 Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Mon, 8 Jan 2024 14:15:56 -0500
Subject: [PATCH] render: Renamed SDL_GetTextureRenderer to
 SDL_GetRendererFromTexture.

---
 include/SDL3/SDL_render.h         | 2 +-
 src/dynapi/SDL_dynapi.sym         | 2 +-
 src/dynapi/SDL_dynapi_overrides.h | 2 +-
 src/dynapi/SDL_dynapi_procs.h     | 2 +-
 src/render/SDL_render.c           | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/SDL3/SDL_render.h b/include/SDL3/SDL_render.h
index 94eee2a9cf48..2a5958dfe756 100644
--- a/include/SDL3/SDL_render.h
+++ b/include/SDL3/SDL_render.h
@@ -651,7 +651,7 @@ extern DECLSPEC SDL_PropertiesID SDLCALL SDL_GetTextureProperties(SDL_Texture *t
  * \sa SDL_CreateTextureFromSurface
  * \sa SDL_CreateTextureWithProperties
  */
-extern DECLSPEC SDL_Renderer *SDLCALL SDL_GetTextureRenderer(SDL_Texture *texture);
+extern DECLSPEC SDL_Renderer *SDLCALL SDL_GetRendererFromTexture(SDL_Texture *texture);
 
 /**
  * Query the attributes of a texture.
diff --git a/src/dynapi/SDL_dynapi.sym b/src/dynapi/SDL_dynapi.sym
index 51f3629b8151..f8900f6811bf 100644
--- a/src/dynapi/SDL_dynapi.sym
+++ b/src/dynapi/SDL_dynapi.sym
@@ -961,7 +961,7 @@ SDL3_0.0.0 {
     SDL_wcsnstr;
     SDL_SyncWindow;
     SDL_GetGamepadSteamHandle;
-    SDL_GetTextureRenderer;
+    SDL_GetRendererFromTexture;
     # extra symbols go here (don't modify this line)
   local: *;
 };
diff --git a/src/dynapi/SDL_dynapi_overrides.h b/src/dynapi/SDL_dynapi_overrides.h
index ddd57de6a69a..b092b19e1d8f 100644
--- a/src/dynapi/SDL_dynapi_overrides.h
+++ b/src/dynapi/SDL_dynapi_overrides.h
@@ -986,4 +986,4 @@
 #define SDL_wcsnstr SDL_wcsnstr_REAL
 #define SDL_SyncWindow SDL_SyncWindow_REAL
 #define SDL_GetGamepadSteamHandle SDL_GetGamepadSteamHandle_REAL
-#define SDL_GetTextureRenderer SDL_GetTextureRenderer_REAL
+#define SDL_GetRendererFromTexture SDL_GetRendererFromTexture_REAL
diff --git a/src/dynapi/SDL_dynapi_procs.h b/src/dynapi/SDL_dynapi_procs.h
index 7d92febecd76..422456864797 100644
--- a/src/dynapi/SDL_dynapi_procs.h
+++ b/src/dynapi/SDL_dynapi_procs.h
@@ -1011,4 +1011,4 @@ SDL_DYNAPI_PROC(char*,SDL_strnstr,(const char *a, const char *b, size_t c),(a,b,
 SDL_DYNAPI_PROC(wchar_t*,SDL_wcsnstr,(const wchar_t *a, const wchar_t *b, size_t c),(a,b,c),return)
 SDL_DYNAPI_PROC(int,SDL_SyncWindow,(SDL_Window *a),(a),return)
 SDL_DYNAPI_PROC(Uint64,SDL_GetGamepadSteamHandle,(SDL_Gamepad *a),(a),return)
-SDL_DYNAPI_PROC(SDL_Renderer*,SDL_GetTextureRenderer,(SDL_Texture *a),(a),return)
+SDL_DYNAPI_PROC(SDL_Renderer*,SDL_GetRendererFromTexture,(SDL_Texture *a),(a),return)
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 66453024b526..7cd43c9b7745 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -1396,7 +1396,7 @@ SDL_Texture *SDL_CreateTextureFromSurface(SDL_Renderer *renderer, SDL_Surface *s
     return texture;
 }
 
-SDL_Renderer *SDL_GetTextureRenderer(SDL_Texture *texture)
+SDL_Renderer *SDL_GetRendererFromTexture(SDL_Texture *texture)
 {
     CHECK_TEXTURE_MAGIC(texture, NULL);
     return texture->renderer;