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/D3DCommon/Common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/D3DCommon/Common.cpp') diff --git a/Source/Core/VideoBackends/D3DCommon/Common.cpp b/Source/Core/VideoBackends/D3DCommon/Common.cpp index f82c2d3f8c..5c0f16b144 100644 --- a/Source/Core/VideoBackends/D3DCommon/Common.cpp +++ b/Source/Core/VideoBackends/D3DCommon/Common.cpp @@ -72,9 +72,9 @@ void UnloadLibraries() s_libraries_loaded = false; } -IDXGIFactory2* CreateDXGIFactory(bool debug_device) +IDXGIFactory* CreateDXGIFactory(bool debug_device) { - IDXGIFactory2* factory; + IDXGIFactory* factory; // Use Win8.1 version if available. if (create_dxgi_factory2 && -- cgit v1.2.3