Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -3916,8 +3916,8 @@ void Application::takeSnapshot() { · 3915 unmodified lines | |||
| 3916 | } | 3916 | } |
| 3917 | 3917 | ||
| 3918 | void Application::setVSyncEnabled() { | 3918 | void 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 | #else | 3940 | #else |
| 3941 | qDebug("V-Sync is FORCED ON on this system\n"); | 3941 | qDebug("V-Sync is FORCED ON on this system\n"); |
| 3942 | #endif | 3942 | #endif |
| 3943 | vsyncOn = true; // Turns off unused variable warning | ||
| 3944 | } | 3943 | } |
| 3945 | 3944 | ||
| 3946 | bool Application::isVSyncOn() const { | 3945 | bool Application::isVSyncOn() const { |