SDL_GL_SetSwapInterval() check

This commit is contained in:
Pan7 committed 2015-07-26 20:23:48 +02:00
1 parent 605dfabb94
commit 525eac0d99
1 file changed
+4 -1
+4 -1
View File
@@ -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;