Fix v-sync functionality

This commit is contained in:
Brad Davis 2015-08-01 22:10:47 -07:00
parent 5c07a7d85b
commit 8ac33453b5

View file

@ -4274,6 +4274,7 @@ void Application::takeSnapshot() {
}
void Application::setVSyncEnabled() {
_glWidget->makeCurrent();
#if defined(Q_OS_WIN)
bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
if (wglewGetExtension("WGL_EXT_swap_control")) {
@ -4298,6 +4299,7 @@ void Application::setVSyncEnabled() {
#else
qCDebug(interfaceapp, "V-Sync is FORCED ON on this system\n");
#endif
_offscreenContext->makeCurrent();
}
void Application::setThrottleFPSEnabled() {