mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: platform: sdl2: Fix uninitialized read introduces in 7fda58561f
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user