summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-29 19:26:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-29 19:26:46 +0300
commitc23b922eecefd6cd6421139cf7ec2b59eb87d748 (patch)
tree6b02931d5b9e8162d57ddd211decaed1610d6f29 /src
parentb60231e8257803cea2b52a2f07dea4bf8584e383 (diff)
downloadplus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.tar.gz
plus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.tar.bz2
plus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.tar.xz
plus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.zip
Disable vsync in all tests.
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index af30e20b3..36dd0536c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -509,7 +509,8 @@ void Client::updateEnv()
setEnv("SDL_VIDEO_ALLOW_SCREENSAVER", "0");
#ifndef WIN32
- const int vsync = config.getIntValue("vsync");
+ const int vsync = settings.options.test.empty()
+ ? config.getIntValue("vsync") : 1;
// __GL_SYNC_TO_VBLANK is nvidia variable.
// vblank_mode is MESA variable.
switch (vsync)