mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 11:49:57 +02:00
Fix v-sync functionality
This commit is contained in:
parent
5c07a7d85b
commit
8ac33453b5
1 changed files with 2 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue