summaryrefslogtreecommitdiff
path: root/src/sdl/sdl_glimp.c
diff options
context:
space:
mode:
authorPan7 <panter@gmx.net>2015-07-26 20:23:48 +0200
committerTim Angus <tim@ngus.net>2016-04-07 11:02:32 +0100
commit483b91152ca6f2449bf632214f32a8ebbce3fc7d (patch)
treeffe1261b48051cafc3daa3a978b93b5adae3d3ae /src/sdl/sdl_glimp.c
parent22b5d7b96190ada24158a9ba41fee893f1a5cb46 (diff)
SDL_GL_SetSwapInterval() check
Diffstat (limited to 'src/sdl/sdl_glimp.c')
-rw-r--r--src/sdl/sdl_glimp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sdl/sdl_glimp.c b/src/sdl/sdl_glimp.c
index efe712fd..fed3fc5b 100644
--- a/src/sdl/sdl_glimp.c
+++ b/src/sdl/sdl_glimp.c
@@ -507,7 +507,10 @@ static int GLimp_SetMode( qboolean failSafe, qboolean fullscreen, qboolean nobor
qglClear( GL_COLOR_BUFFER_BIT );
SDL_GL_SwapWindow( SDL_window );
- SDL_GL_SetSwapInterval( r_swapInterval->integer );
+ if( SDL_GL_SetSwapInterval( r_swapInterval->integer ) == -1 )
+ {
+ ri.Printf( PRINT_DEVELOPER, "SDL_GL_SetSwapInterval failed: %s\n", SDL_GetError( ) );
+ }
glConfig.colorBits = testColorBits;
glConfig.depthBits = testDepthBits;