D3DBase: Only use temporary mono when supported by the swapchain.

This commit is contained in:
Jules Blok 2017-07-10 01:02:05 +02:00
parent dcb4386008
commit 938939136e
1 changed files with 3 additions and 2 deletions

View File

@ -579,8 +579,9 @@ void EndFrame()
void Present() void Present()
{ {
UINT present_flags = UINT present_flags = 0;
g_ActiveConfig.iStereoMode != STEREO_QUADBUFFER ? DXGI_PRESENT_STEREO_TEMPORARY_MONO : 0; if (swapchain->IsTemporaryMonoSupported() && g_ActiveConfig.iStereoMode != STEREO_QUADBUFFER)
present_flags = DXGI_PRESENT_STEREO_TEMPORARY_MONO;
// TODO: Is 1 the correct value for vsyncing? // TODO: Is 1 the correct value for vsyncing?
swapchain->Present((UINT)g_ActiveConfig.IsVSync(), present_flags); swapchain->Present((UINT)g_ActiveConfig.IsVSync(), present_flags);