From: Matthias Braun Date: Fri, 25 May 2007 14:15:29 +0000 (+0000) Subject: only try vsync, when set in config X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=68880ecf8bac747aae18ba3637ef8d38963ee5da;p=supertux.git only try vsync, when set in config SVN-Revision: 5010 --- diff --git a/src/main.cpp b/src/main.cpp index 8a7ba54a8..38180b544 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -372,8 +372,10 @@ void init_video() desktop_height = info->current_h; } - /* we want vsync for smooth scrolling */ - SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + if(config->try_vsync) { + /* we want vsync for smooth scrolling */ + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + } #endif SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);