Do not spam in console if vsync not availiable

This commit is contained in:
mittorn 2018-12-05 23:56:41 +07:00
parent 7ad7af76dd
commit aed53c4fda

View File

@ -400,8 +400,7 @@ void GL_UpdateSwapInterval( void )
// disable VSync while level is loading
if( cls.state < ca_active )
{
if( SDL_GL_SetSwapInterval( gl_vsync->value ) )
Con_Reportf( S_ERROR "SDL_GL_SetSwapInterval: %s\n", SDL_GetError( ) );
SDL_GL_SetSwapInterval( gl_vsync->value );
SetBits( gl_vsync->flags, FCVAR_CHANGED );
}
else if( FBitSet( gl_vsync->flags, FCVAR_CHANGED ))