From 7a752f83024cdb752df365cce7e4ac5e5dc65993 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 7 Jun 2007 02:37:31 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1154 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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__)