diff options
| author | Jules Blok <jules.blok@gmail.com> | 2017-07-10 01:02:05 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2017-07-10 01:02:05 +0200 |
| commit | 938939136efd6011ea8bfb807404ca288e37b025 (patch) | |
| tree | 67e979efe06bbd4c58267d7cb541a11167cc4202 /Source | |
| parent | dcb4386008ee28121c753bfa21ca8d732a90b944 (diff) | |
D3DBase: Only use temporary mono when supported by the swapchain.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/D3DBase.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/D3D/D3DBase.cpp b/Source/Core/VideoBackends/D3D/D3DBase.cpp index ad989f4188..6fa2e7f832 100644 --- a/Source/Core/VideoBackends/D3D/D3DBase.cpp +++ b/Source/Core/VideoBackends/D3D/D3DBase.cpp @@ -579,8 +579,9 @@ void EndFrame() void Present() { - UINT present_flags = - g_ActiveConfig.iStereoMode != STEREO_QUADBUFFER ? DXGI_PRESENT_STEREO_TEMPORARY_MONO : 0; + UINT present_flags = 0; + if (swapchain->IsTemporaryMonoSupported() && g_ActiveConfig.iStereoMode != STEREO_QUADBUFFER) + present_flags = DXGI_PRESENT_STEREO_TEMPORARY_MONO; // TODO: Is 1 the correct value for vsyncing? swapchain->Present((UINT)g_ActiveConfig.IsVSync(), present_flags); |
