From 68880ecf8bac747aae18ba3637ef8d38963ee5da Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Fri, 25 May 2007 14:15:29 +0000 Subject: [PATCH] only try vsync, when set in config SVN-Revision: 5010 --- src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); -- 2.11.0