diff options
author | Pan7 <panter@gmx.net> | 2015-07-26 20:23:48 +0200 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2016-04-07 11:02:32 +0100 |
commit | 483b91152ca6f2449bf632214f32a8ebbce3fc7d (patch) | |
tree | ffe1261b48051cafc3daa3a978b93b5adae3d3ae /src | |
parent | 22b5d7b96190ada24158a9ba41fee893f1a5cb46 (diff) |
SDL_GL_SetSwapInterval() check
Diffstat (limited to 'src')
-rw-r--r-- | src/sdl/sdl_glimp.c | 5 |
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; |