mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-01-31 21:10:44 +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
|
#endif
|
||||||
|
|
||||||
if( ( SDL_window = SDL_CreateWindow( CLIENT_WINDOW_TITLE, x, y,
|
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( ) );
|
ri.Printf( PRINT_DEVELOPER, "SDL_CreateWindow failed: %s\n", SDL_GetError( ) );
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue