mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 08:31:03 +00:00
fix handling of vsync
This commit is contained in:
parent
8b2cce1f37
commit
3b83514df4
1 changed files with 7 additions and 1 deletions
|
@ -807,7 +807,13 @@ static void GL_CheckExtensions (void)
|
|||
{
|
||||
Con_Warning ("vertical sync not supported (SDL_GL_SetAttribute failed)\n");
|
||||
}
|
||||
#if !defined(USE_SDL2)
|
||||
#if defined(USE_SDL2)
|
||||
else if ((swap_control = SDL_GL_GetSwapInterval()) == -1)
|
||||
{
|
||||
gl_swap_control = false;
|
||||
Con_Warning ("vertical sync not supported (SDL_GL_GetSwapInterval failed)\n");
|
||||
}
|
||||
#else
|
||||
else if (SDL_GL_GetAttribute(SDL_GL_SWAP_CONTROL, &swap_control) == -1)
|
||||
{
|
||||
gl_swap_control = false;
|
||||
|
|
Loading…
Reference in a new issue