mirror of https://github.com/encounter/SDL.git
Prevent shadowing static variable '_this' with local paramter '_this' of SDL_CreateWindowTexture
This commit is contained in:
parent
a4a80c8607
commit
45833a148d
|
@ -128,8 +128,6 @@ static VideoBootStrap *bootstrap[] = {
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
static SDL_VideoDevice *_this = NULL;
|
|
||||||
|
|
||||||
#define CHECK_WINDOW_MAGIC(window, retval) \
|
#define CHECK_WINDOW_MAGIC(window, retval) \
|
||||||
if (!_this) { \
|
if (!_this) { \
|
||||||
SDL_UninitializedVideo(); \
|
SDL_UninitializedVideo(); \
|
||||||
|
@ -288,6 +286,8 @@ SDL_CreateWindowTexture(SDL_VideoDevice *_this, SDL_Window * window, Uint32 * fo
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static SDL_VideoDevice *_this = NULL;
|
||||||
|
|
||||||
static int
|
static int
|
||||||
SDL_UpdateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, const SDL_Rect * rects, int numrects)
|
SDL_UpdateWindowTexture(SDL_VideoDevice *unused, SDL_Window * window, const SDL_Rect * rects, int numrects)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue