Do not spam in console if vsync not availiable
This commit is contained in:
parent
7ad7af76dd
commit
aed53c4fda
1 changed files with 1 additions and 2 deletions
|
@ -400,8 +400,7 @@ void GL_UpdateSwapInterval( void )
|
||||||
// disable VSync while level is loading
|
// disable VSync while level is loading
|
||||||
if( cls.state < ca_active )
|
if( cls.state < ca_active )
|
||||||
{
|
{
|
||||||
if( SDL_GL_SetSwapInterval( gl_vsync->value ) )
|
SDL_GL_SetSwapInterval( gl_vsync->value );
|
||||||
Con_Reportf( S_ERROR "SDL_GL_SetSwapInterval: %s\n", SDL_GetError( ) );
|
|
||||||
SetBits( gl_vsync->flags, FCVAR_CHANGED );
|
SetBits( gl_vsync->flags, FCVAR_CHANGED );
|
||||||
}
|
}
|
||||||
else if( FBitSet( gl_vsync->flags, FCVAR_CHANGED ))
|
else if( FBitSet( gl_vsync->flags, FCVAR_CHANGED ))
|
||||||
|
|
Loading…
Add table
Reference in a new issue