Merge pull request #5948 from Armada651/d3d-explicit-stereo

D3DBase: Only use a stereo swapchain if quad-buffering is enabled.
This commit is contained in:
Stenzek 2017-09-03 21:07:24 +10:00 committed by GitHub
commit 99d61906cc
1 changed files with 1 additions and 5 deletions

View File

@ -301,11 +301,7 @@ HRESULT Create(HWND wnd)
swap_chain_desc.SwapEffect = DXGI_SWAP_EFFECT_FLIP_DISCARD;
swap_chain_desc.Width = xres;
swap_chain_desc.Height = yres;
// By creating a stereo swapchain early we can toggle Quad-Buffered stereoscopy
// while the game is running.
swap_chain_desc.Stereo =
g_ActiveConfig.iStereoMode == STEREO_QUADBUFFER || factory->IsWindowedStereoEnabled();
swap_chain_desc.Stereo = g_ActiveConfig.iStereoMode == STEREO_QUADBUFFER;
#if defined(_DEBUG) || defined(DEBUGFAST)
// Creating debug devices can sometimes fail if the user doesn't have the correct