mirror of
https://github.com/nzp-team/quakespasm.git
synced 2024-11-21 19:31:21 +00:00
VITA: Fix -Wuninititalized warning
The Vita doesn't use FSAA so it is safe to set this to zero. source/gl_vidsdl.c: In function 'VID_SetMode': source/gl_vidsdl.c:823:2: warning: 'fsaa_obtained' is used uninitialized in this function [-Wuninitialized] 823 | Con_SafePrintf ("Video mode %dx%dx%d %dHz (%d-bit z-buffer, %dx FSAA) initialized\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 824 | VID_GetCurrentWidth(), | ~~~~~~~~~~~~~~~~~~~~~~ 825 | VID_GetCurrentHeight(), | ~~~~~~~~~~~~~~~~~~~~~~~ 826 | VID_GetCurrentBPP(), | ~~~~~~~~~~~~~~~~~~~~ 827 | VID_GetCurrentRefreshRate(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 828 | depthbits, | ~~~~~~~~~~ 829 | fsaa_obtained); | ~~~~~~~~~~~~~~
This commit is contained in:
parent
6a256fe327
commit
8ada86168c
1 changed files with 1 additions and 0 deletions
|
@ -798,6 +798,7 @@ static qboolean VID_SetMode (int width, int height, int refreshrate, int bpp, qb
|
|||
#ifdef VITA
|
||||
depthbits = 24;
|
||||
gl_stencilbits = 8;
|
||||
fsaa_obtained = 0;
|
||||
#else
|
||||
// read the obtained z-buffer depth
|
||||
if (SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &depthbits) == -1)
|
||||
|
|
Loading…
Reference in a new issue