mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:43:49 +02:00
quiet warning on linux
This commit is contained in:
parent
cdeda67942
commit
9ec72e4902
1 changed files with 1 additions and 2 deletions
|
@ -3916,8 +3916,8 @@ void Application::takeSnapshot() {
|
|||
}
|
||||
|
||||
void Application::setVSyncEnabled() {
|
||||
bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
|
||||
#if defined(Q_OS_WIN)
|
||||
bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
|
||||
if (wglewGetExtension("WGL_EXT_swap_control")) {
|
||||
wglSwapIntervalEXT(vsyncOn);
|
||||
int swapInterval = wglGetSwapIntervalEXT();
|
||||
|
@ -3940,7 +3940,6 @@ void Application::setVSyncEnabled() {
|
|||
#else
|
||||
qDebug("V-Sync is FORCED ON on this system\n");
|
||||
#endif
|
||||
vsyncOn = true; // Turns off unused variable warning
|
||||
}
|
||||
|
||||
bool Application::isVSyncOn() const {
|
||||
|
|
Loading…
Reference in a new issue