sdl: use SDL_GL_SetSwapInterval only for REF_GL

This commit is contained in:
Ivan Avdeev 2024-04-29 19:40:27 -04:00
parent 8a648619c4
commit ca72c8991b
1 changed files with 3 additions and 0 deletions

View File

@ -487,6 +487,9 @@ GL_UpdateSwapInterval
void GL_UpdateSwapInterval( void )
{
#if SDL_VERSION_ATLEAST( 2, 0, 0 )
if (glw_state.context_type != REF_GL)
return;
// disable VSync while level is loading
if( cls.state < ca_active )
{