summaryrefslogtreecommitdiff
path: root/src/sdl/sdl_glimp.c
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-24 22:56:00 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:02:31 +0100
commit95cc01fb25e20822fe9b091702789111cc5d1b8b (patch)
tree91e817f1362c251fec69a0a9efd553324aaccc2e /src/sdl/sdl_glimp.c
parent78d3929f526d06b1879c565ed08b337ba6138cae (diff)
SDL_Init zero check
Diffstat (limited to 'src/sdl/sdl_glimp.c')
-rw-r--r--src/sdl/sdl_glimp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c
index b41da64c..9f86dd9e 100644
--- a/src/sdl/sdl_glimp.c
+++ b/src/sdl/sdl_glimp.c
@@ -536,7 +536,7 @@ static qboolean GLimp_StartDriverAndSetMode( qboolean failSafe, qboolean fullscr
{
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;