mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-19 15:40:53 +00:00
SDL_CreateWindow NULL check
This commit is contained in:
parent
605dfabb94
commit
6fb47ce9bf
1 changed files with 1 additions and 1 deletions
|
@ -435,7 +435,7 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder)
|
|||
#endif
|
||||
|
||||
if( ( SDL_window = SDL_CreateWindow( CLIENT_WINDOW_TITLE, x, y,
|
||||
glConfig.vidWidth, glConfig.vidHeight, flags ) ) == 0 )
|
||||
glConfig.vidWidth, glConfig.vidHeight, flags ) ) == NULL )
|
||||
{
|
||||
ri.Printf( PRINT_DEVELOPER, "SDL_CreateWindow failed: %s\n", SDL_GetError( ) );
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue