From ecb3e05cb9c77e74d6cad467c2a9eff769cae679 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 9 Apr 2020 02:35:35 +0100 Subject: [PATCH] [d3d9] Ignore adapter type for CheckDepthStencilMatch and CheckDeviceType when windowed --- src/d3d9/d3d9_adapter.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/d3d9/d3d9_adapter.cpp b/src/d3d9/d3d9_adapter.cpp index 80941fe4c..4c7821d42 100644 --- a/src/d3d9/d3d9_adapter.cpp +++ b/src/d3d9/d3d9_adapter.cpp @@ -90,7 +90,7 @@ namespace dxvk { D3D9Format AdapterFormat, D3D9Format BackBufferFormat, BOOL bWindowed) { - if (!IsSupportedAdapterFormat(AdapterFormat, bWindowed)) + if (!IsSupportedAdapterFormat(AdapterFormat, bWindowed) && !bWindowed) return D3DERR_NOTAVAILABLE; if (!IsSupportedBackBufferFormat(BackBufferFormat, bWindowed)) @@ -214,9 +214,6 @@ namespace dxvk { D3D9Format AdapterFormat, D3D9Format RenderTargetFormat, D3D9Format DepthStencilFormat) { - if (!IsSupportedAdapterFormat(AdapterFormat, false)) - return D3DERR_NOTAVAILABLE; - if (!IsDepthFormat(DepthStencilFormat)) return D3DERR_NOTAVAILABLE;