mirror of https://github.com/encounter/SDL.git
Fix variable may be uninitialized when used here [-Wconditional-uninitialized]
This commit is contained in:
parent
04256a5372
commit
a4a80c8607
|
@ -2451,9 +2451,9 @@ SDL_SetWindowFullscreen(SDL_Window * window, Uint32 flags)
|
||||||
static SDL_Surface *
|
static SDL_Surface *
|
||||||
SDL_CreateWindowFramebuffer(SDL_Window * window)
|
SDL_CreateWindowFramebuffer(SDL_Window * window)
|
||||||
{
|
{
|
||||||
Uint32 format;
|
Uint32 format = 0;
|
||||||
void *pixels = NULL;
|
void *pixels = NULL;
|
||||||
int pitch;
|
int pitch = 0;
|
||||||
int bpp;
|
int bpp;
|
||||||
Uint32 Rmask, Gmask, Bmask, Amask;
|
Uint32 Rmask, Gmask, Bmask, Amask;
|
||||||
SDL_bool created_framebuffer = SDL_FALSE;
|
SDL_bool created_framebuffer = SDL_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue