]> git.jsancho.org Git - lugaru.git/blobdiff - Source/OpenGL_Windows.cpp
Set swap interval via SDL, enable by default
[lugaru.git] / Source / OpenGL_Windows.cpp
index f5aed92e9a0851d151ef68d4a57d5f28ac0cd747..5d73e7a139c3e20217204ff9ec26082460baa005 100644 (file)
@@ -296,6 +296,7 @@ Boolean SetUp (Game & game)
 
     SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
     SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
+    SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, vblsync);
     
     if (SDL_SetVideoMode(kContextWidth, kContextHeight, 0, sdlflags) == NULL)
     {