diff options
| author | JosJuice <josjuice@gmail.com> | 2019-01-31 22:44:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-31 22:44:10 +0100 |
| commit | c1492aeb45e471cd37cd562f3fc87c27ab0fcd4c (patch) | |
| tree | 5f46fc0539042a0b59323de07c7e944e1cf4f006 /Source/Core/VideoBackends/D3D | |
| parent | 9c38772301101c4cd0f2a7912c9314ce6492cb62 (diff) | |
| parent | b01df8670fd9cf0571230ca7f0e19611e71256dd (diff) | |
Merge pull request #7744 from stenzek/vsync
Renderer: Fix throttle-disable (TAB) hotkey when vsync is enabled
Diffstat (limited to 'Source/Core/VideoBackends/D3D')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DBase.cpp b/Source/Core/VideoBackends/D3D/D3DBase.cpp index 333fd969f5..654cf17c95 100644 --- a/Source/Core/VideoBackends/D3D/D3DBase.cpp +++ b/Source/Core/VideoBackends/D3D/D3DBase.cpp @@ -601,7 +601,7 @@ void Present() // flag when it is supported, even when presenting in windowed mode. // However, this flag cannot be used if the app is in fullscreen mode as a // result of calling SetFullscreenState. - if (AllowTearingSupported() && !g_ActiveConfig.IsVSync() && !GetFullscreenState()) + if (AllowTearingSupported() && !g_ActiveConfig.bVSyncActive && !GetFullscreenState()) present_flags |= DXGI_PRESENT_ALLOW_TEARING; if (swapchain->IsTemporaryMonoSupported() && g_ActiveConfig.stereo_mode != StereoMode::QuadBuffer) @@ -610,7 +610,7 @@ void Present() } // TODO: Is 1 the correct value for vsyncing? - swapchain->Present(static_cast<UINT>(g_ActiveConfig.IsVSync()), present_flags); + swapchain->Present(static_cast<UINT>(g_ActiveConfig.bVSyncActive), present_flags); } HRESULT SetFullscreenState(bool enable_fullscreen) |
