History

quiet warning on linux

Seth Alves committed 11 years ago

Commit 9ec72e41 parent cdeda671 file · +1 −2Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−2
@@ -3916,8 +3916,8 @@ void Application::takeSnapshot() { · 3915 unmodified lines
3916}3916}
3917 3917
3918void Application::setVSyncEnabled() {3918void Application::setVSyncEnabled() {
3919 bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
3920#if defined(Q_OS_WIN)3919#if defined(Q_OS_WIN)
3920 bool vsyncOn = Menu::getInstance()->isOptionChecked(MenuOption::RenderTargetFramerateVSyncOn);
3921 if (wglewGetExtension("WGL_EXT_swap_control")) {3921 if (wglewGetExtension("WGL_EXT_swap_control")) {
3922 wglSwapIntervalEXT(vsyncOn);3922 wglSwapIntervalEXT(vsyncOn);
3923 int swapInterval = wglGetSwapIntervalEXT();3923 int swapInterval = wglGetSwapIntervalEXT();
@@ -3940,7 +3940,6 @@ void Application::setVSyncEnabled() { · 16 unmodified lines
3940#else3940#else
3941 qDebug("V-Sync is FORCED ON on this system\n");3941 qDebug("V-Sync is FORCED ON on this system\n");
3942#endif3942#endif
3943 vsyncOn = true; // Turns off unused variable warning
3944}3943}
3945 3944
3946bool Application::isVSyncOn() const {3945bool Application::isVSyncOn() const {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t