engine: platform: sdl2: Fix uninitialized read introduces in 7fda58561f

This commit is contained in:
lewa_j
2025-08-02 17:59:26 +03:00
parent 56361b52e7
commit b14a1b664f

View File

@@ -969,8 +969,8 @@ qboolean R_Init_Video( const int type )
int displayIndex = SDL_GetPointDisplayIndex( &point );
#else
int displayIndex = 0;
SDL_GetCurrentDisplayMode( displayIndex, &displayMode );
#endif
SDL_GetCurrentDisplayMode( displayIndex, &displayMode );
refState.desktopBitsPixel = SDL_BITSPERPIXEL( displayMode.format );