From 9316e25652c8e2bd3b844b225e549452bcfc86ec Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 12 May 2019 14:42:16 +1000 Subject: D3DCommon: Fallback to base CreateSwapChain on failure It appears that some older drivers do not support CreateSwapChainForHwnd, resulting in DXGI_ERROR_INVALID_CALL. For these cases, fall back to the base CreateSwapChain() from DXGI 1.0. In theory this should also let us run on Win7 without the platform update, but in reality we require the newer shader compiler so this probably won't work regardless. Also any hardware of this vintage is unlikely to run Dolphin well. --- Source/Core/VideoBackends/D3D/SwapChain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoBackends/D3D/SwapChain.cpp') diff --git a/Source/Core/VideoBackends/D3D/SwapChain.cpp b/Source/Core/VideoBackends/D3D/SwapChain.cpp index d5ce3372c0..7c60554859 100644 --- a/Source/Core/VideoBackends/D3D/SwapChain.cpp +++ b/Source/Core/VideoBackends/D3D/SwapChain.cpp @@ -7,7 +7,7 @@ namespace DX11 { -SwapChain::SwapChain(const WindowSystemInfo& wsi, IDXGIFactory2* dxgi_factory, +SwapChain::SwapChain(const WindowSystemInfo& wsi, IDXGIFactory* dxgi_factory, ID3D11Device* d3d_device) : D3DCommon::SwapChain(wsi, dxgi_factory, d3d_device) { -- cgit v1.2.3