D3DBase: Only use a stereo swapchain if quad-buffering is enabled.

This commit is contained in:
Jules Blok 2017-08-20 18:24:30 +02:00
parent 8d7f28e79b
commit f4f6782ae6
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