Merge pull request #267 from tomaz82/fixSwapInterval

Fix vsync off
This commit is contained in:
Jools Wills 2017-10-26 15:25:58 +01:00 committed by GitHub
commit f883a0b0f2

View file

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