SDL_CreateWindow NULL check

This commit is contained in:
Pan7 2015-07-26 13:54:29 +02:00
parent 605dfabb94
commit 6fb47ce9bf

View file

@ -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;