From 483b91152ca6f2449bf632214f32a8ebbce3fc7d Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 20:23:48 +0200 Subject: SDL_GL_SetSwapInterval() check --- src/sdl/sdl_glimp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit