Skip to content
Permalink
Browse files
Merge pull request #5948 from Armada651/d3d-explicit-stereo
D3DBase: Only use a stereo swapchain if quad-buffering is enabled.
  • Loading branch information
stenzek committed Sep 3, 2017
2 parents 75574ec + f4f6782 commit 99d6190
Showing 1 changed file with 1 addition and 5 deletions.
@@ -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

0 comments on commit 99d6190

Please sign in to comment.