sdl2-compat: minor sync with latest SDL2 and SDL3

From dede14ce225d32785ee90c2a7ce3ddf808606aae Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Wed, 11 Sep 2024 10:10:14 +0300
Subject: [PATCH] minor sync with latest SDL2 and SDL3

---
 include/SDL2/SDL_render.h  | 5 ++++-
 src/sdl3_include_wrapper.h | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/include/SDL2/SDL_render.h b/include/SDL2/SDL_render.h
index 621090b..1f7062b 100644
--- a/include/SDL2/SDL_render.h
+++ b/include/SDL2/SDL_render.h
@@ -764,7 +764,10 @@ extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *rendere
  *
  * The default render target is the window for which the renderer was created.
  * To stop rendering to a texture and render to the window again, call this
- * function with a NULL `texture`.
+ * function with a NULL `texture`. This will reset the renderer's viewport,
+ * clipping rectangle, and scaling settings to the state they were in before
+ * setting a non-NULL `texture` target, losing any changes made in the
+ * meantime.
  *
  * \param renderer the rendering context.
  * \param texture the targeted texture, which must be created with the
diff --git a/src/sdl3_include_wrapper.h b/src/sdl3_include_wrapper.h
index 261cc24..590a231 100644
--- a/src/sdl3_include_wrapper.h
+++ b/src/sdl3_include_wrapper.h
@@ -61,6 +61,7 @@
 #define SDL_BindAudioStream IGNORE_THIS_VERSION_OF_SDL_BindAudioStream
 #define SDL_BindAudioStreams IGNORE_THIS_VERSION_OF_SDL_BindAudioStreams
 #define SDL_BindGPUComputePipeline IGNORE_THIS_VERSION_OF_SDL_BindGPUComputePipeline
+#define SDL_BindGPUComputeSamplers IGNORE_THIS_VERSION_OF_SDL_BindGPUComputeSamplers
 #define SDL_BindGPUComputeStorageBuffers IGNORE_THIS_VERSION_OF_SDL_BindGPUComputeStorageBuffers
 #define SDL_BindGPUComputeStorageTextures IGNORE_THIS_VERSION_OF_SDL_BindGPUComputeStorageTextures
 #define SDL_BindGPUFragmentSamplers IGNORE_THIS_VERSION_OF_SDL_BindGPUFragmentSamplers
@@ -1311,6 +1312,10 @@
 #undef SDL_BindGPUComputePipeline
 #endif
 
+#ifdef SDL_BindGPUComputeSamplers
+#undef SDL_BindGPUComputeSamplers
+#endif
+
 #ifdef SDL_BindGPUComputeStorageBuffers
 #undef SDL_BindGPUComputeStorageBuffers
 #endif