]> git.jsancho.org Git - lugaru.git/commitdiff
Guard SDL_GL_SWAP_CONTROL by version check
authorAlexander Monakov <amonakov@gmail.com>
Wed, 4 May 2011 19:30:55 +0000 (23:30 +0400)
committerAlexander Monakov <amonakov@gmail.com>
Wed, 4 May 2011 19:30:55 +0000 (23:30 +0400)
Source/OpenGL_Windows.cpp

index 5d73e7a139c3e20217204ff9ec26082460baa005..23a5f1a407b58f56b6df81c3c2a07d55ef929491 100644 (file)
@@ -296,7 +296,9 @@ Boolean SetUp (Game & game)
 
     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
     SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
+#if SDL_VERSION_ATLEAST(1, 2, 10)
     SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, vblsync);
+#endif
     
     if (SDL_SetVideoMode(kContextWidth, kContextHeight, 0, sdlflags) == NULL)
     {