From 45833a148dab6091bf5caed0062aaed0567edb2b Mon Sep 17 00:00:00 2001 From: Sylvain Date: Wed, 9 Mar 2022 15:33:45 +0100 Subject: [PATCH] Prevent shadowing static variable '_this' with local paramter '_this' of SDL_CreateWindowTexture --- src/video/SDL_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index bd7d44f8e..143f1172b 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -128,8 +128,6 @@ static VideoBootStrap *bootstrap[] = { NULL }; -static SDL_VideoDevice *_this = NULL; - #define CHECK_WINDOW_MAGIC(window, retval) \ if (!_this) { \ SDL_UninitializedVideo(); \ @@ -288,6 +286,8 @@ SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window * window, Uint32 * fo return 0; } +static SDL_VideoDevice *_this = NULL; + static int SDL_UpdateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, const SDL_Rect * rects, int numrects) {