Browse Source

sdl: vid: fix disabling vsync when loading a level

pull/2/head
Alibek Omarov 6 years ago
parent
commit
29a48cb34c
  1. 2
      engine/platform/sdl/vid_sdl.c

2
engine/platform/sdl/vid_sdl.c

@ -390,7 +390,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 )
{ {
SDL_GL_SetSwapInterval( gl_vsync->value ); SDL_GL_SetSwapInterval( 0 );
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…
Cancel
Save