Fix vsync off, SDL_GL_SetSwapInterval(0) is not always default

This commit is contained in:
Tomas Jakobsson 2017-10-23 14:43:06 +02:00
parent a9cdbbc508
commit ee4d0d95fa

View file

@ -110,6 +110,8 @@ namespace Renderer
if(SDL_GL_SetSwapInterval(-1) != 0 && SDL_GL_SetSwapInterval(1) != 0)
LOG(LogWarning) << "Tried to enable vsync, but failed! (" << SDL_GetError() << ")";
}
else
SDL_GL_SetSwapInterval(0);
return true;
}