From ba0e3f4f83adb259822f21dc861919617a4422b4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Jun 2014 19:29:33 +0300 Subject: Fix vsync control for MESA drivers. --- src/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3-70-g09d2