mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:59:20 +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() {
|
void Application::setVSyncEnabled() {
|
||||||
bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
|
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
|
bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
|
||||||
if (wglewGetExtension("WGL_EXT_swap_control")) {
|
if (wglewGetExtension("WGL_EXT_swap_control")) {
|
||||||
wglSwapIntervalEXT(vsyncOn);
|
wglSwapIntervalEXT(vsyncOn);
|
||||||
int swapInterval = wglGetSwapIntervalEXT();
|
int swapInterval = wglGetSwapIntervalEXT();
|
||||||
|
@ -3940,7 +3940,6 @@ void Application::setVSyncEnabled() {
|
||||||
#else
|
#else
|
||||||
qDebug("V-Sync is FORCED ON on this system\n");
|
qDebug("V-Sync is FORCED ON on this system\n");
|
||||||
#endif
|
#endif
|
||||||
vsyncOn = true; // Turns off unused variable warning
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Application::isVSyncOn() const {
|
bool Application::isVSyncOn() const {
|
||||||
|
|
Loading…
Reference in a new issue