diff --git a/source/src/main.cpp b/source/src/main.cpp index 3e072c4e..76367f45 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -229,7 +229,9 @@ int main(int argc, char **argv) SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, fsaa); } +#if SDL_VERSION_ATLEAST(1, 2, 11) if(vsync>=0) SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, vsync); +#endif int resize = SDL_RESIZABLE; #if defined(WIN32) || defined(__APPLE__)