diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-29 19:26:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-29 19:26:46 +0300 |
commit | c23b922eecefd6cd6421139cf7ec2b59eb87d748 (patch) | |
tree | 6b02931d5b9e8162d57ddd211decaed1610d6f29 /src/client.cpp | |
parent | b60231e8257803cea2b52a2f07dea4bf8584e383 (diff) | |
download | manaplus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.tar.gz manaplus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.tar.bz2 manaplus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.tar.xz manaplus-c23b922eecefd6cd6421139cf7ec2b59eb87d748.zip |
Disable vsync in all tests.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 3 |
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) |