summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1ec0c683d..af30e20b3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -510,13 +510,17 @@ void Client::updateEnv()
#ifndef WIN32
const int vsync = config.getIntValue("vsync");
+ // __GL_SYNC_TO_VBLANK is nvidia variable.
+ // vblank_mode is MESA variable.
switch (vsync)
{
case 1:
Client::setEnv("__GL_SYNC_TO_VBLANK", "0");
+ Client::setEnv("vblank_mode", "0");
break;
case 2:
Client::setEnv("__GL_SYNC_TO_VBLANK", "1");
+ Client::setEnv("vblank_mode", "1");
break;
default:
break;