SDL_Init zero check

This commit is contained in:
Pan7 2015-07-24 22:56:00 +02:00
parent 36f65fd7c5
commit 2a38bca931
3 changed files with 3 additions and 3 deletions

View file

@ -491,7 +491,7 @@ static qboolean GLimp_StartDriverAndSetMode(int mode, qboolean fullscreen, qbool
{
const char *driverName;
if (SDL_Init(SDL_INIT_VIDEO) == -1)
if (SDL_Init(SDL_INIT_VIDEO) != 0)
{
ri.Printf( PRINT_ALL, "SDL_Init( SDL_INIT_VIDEO ) FAILED (%s)\n", SDL_GetError());
return qfalse;