From 525eac0d992744ffdb4eee94457d9f2b3eedc2f1 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Sun, 26 Jul 2015 20:23:48 +0200 Subject: [PATCH] SDL_GL_SetSwapInterval() check --- code/sdl/sdl_glimp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/sdl/sdl_glimp.c b/code/sdl/sdl_glimp.c index f9b3e845..2889e6b0 100644 --- a/code/sdl/sdl_glimp.c +++ b/code/sdl/sdl_glimp.c @@ -476,7 +476,10 @@ static int GLimp_SetMode(int mode, qboolean fullscreen, qboolean noborder) 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;