Merge pull request #136 from Pan7/SDL_NULL

SDL_CreateWindow NULL check
This commit is contained in:
Tim Angus 2015-07-26 15:50:54 +01:00
commit c35e0faffb
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,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;