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

View file

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