From aa35cdbb18f5dce436454db18db66ec36d5b866a Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Tue, 1 Oct 2019 22:27:03 +0200 Subject: [PATCH] [d3d11] Fix return code on swap chain creation failure Fixes a wine test failure. --- src/d3d11/d3d11_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp index 1a223faec..a39a28669 100644 --- a/src/d3d11/d3d11_device.cpp +++ b/src/d3d11/d3d11_device.cpp @@ -2483,7 +2483,7 @@ namespace dxvk { return S_OK; } catch (const DxvkError& e) { Logger::err(e.message()); - return DXGI_ERROR_UNSUPPORTED; + return E_INVALIDARG; } }