honour vsync param

This commit is contained in:
Vincent Lejeune 2015-02-01 19:43:43 +01:00
parent 1844ab2a7c
commit cbf9e03b41
2 changed files with 1 additions and 2 deletions

View File

@ -715,8 +715,6 @@ bool COpenGLDriver::initDriver(CIrrDeviceWayland* device)
genericDriverInit();
// set vsync
// extGlSwapInterval(Params.Vsync ? 1 : 0);
return true;
}

View File

@ -608,6 +608,7 @@ void CIrrDeviceWayland::initEGL()
os::Printer::log("eglMakeCurrent() error", "", ELL_ERROR);
}
video::useCoreContext = true;
eglSwapInterval(egl_display, CreationParams.Vsync ? 1 : 0);
}
bool CIrrDeviceWayland::createWindow()