summaryrefslogtreecommitdiff
path: root/src/sdl/sdl_glimp.c
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-26 13:54:29 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:02:32 +0100
commit969f68f3c17199073643a138f12f9b6dae0717bb (patch)
tree4191a07f5614075878676ee9930a82d8b440e7cd /src/sdl/sdl_glimp.c
parent6a1b563be8d358a7d4af5b43307ace4c5f2c6a99 (diff)
SDL_CreateWindow NULL 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 e979ba1f..d7536794 100644
--- a/src/sdl/sdl_glimp.c
+++ b/src/sdl/sdl_glimp.c
@@ -460,7 +460,7 @@ static int GLimp_SetMode( qboolean failSafe, qboolean fullscreen, qboolean nobor
#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;