Fix variable may be uninitialized when used here [-Wconditional-uninitialized]

This commit is contained in:
Sylvain 2022-03-09 15:21:55 +01:00
parent 04256a5372
commit a4a80c8607
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E

View File

@ -2451,9 +2451,9 @@ SDL_SetWindowFullscreen(SDL_Window * window, Uint32 flags)
static SDL_Surface *
SDL_CreateWindowFramebuffer(SDL_Window * window)
{
Uint32 format;
Uint32 format = 0;
void *pixels = NULL;
int pitch;
int pitch = 0;
int bpp;
Uint32 Rmask, Gmask, Bmask, Amask;
SDL_bool created_framebuffer = SDL_FALSE;