diff --git a/src/d3d9/d3d9_adapter.cpp b/src/d3d9/d3d9_adapter.cpp index 2cab599c..80941fe4 100644 --- a/src/d3d9/d3d9_adapter.cpp +++ b/src/d3d9/d3d9_adapter.cpp @@ -90,8 +90,10 @@ namespace dxvk { D3D9Format AdapterFormat, D3D9Format BackBufferFormat, BOOL bWindowed) { - if (!IsSupportedBackBufferFormat( - AdapterFormat, BackBufferFormat, bWindowed)) + if (!IsSupportedAdapterFormat(AdapterFormat, bWindowed)) + return D3DERR_NOTAVAILABLE; + + if (!IsSupportedBackBufferFormat(BackBufferFormat, bWindowed)) return D3DERR_NOTAVAILABLE; return D3D_OK; diff --git a/src/d3d9/d3d9_monitor.cpp b/src/d3d9/d3d9_monitor.cpp index 9d9812ab..559dea26 100644 --- a/src/d3d9/d3d9_monitor.cpp +++ b/src/d3d9/d3d9_monitor.cpp @@ -35,19 +35,6 @@ namespace dxvk { } - bool IsSupportedBackBufferFormat( - D3D9Format AdapterFormat, - D3D9Format BackBufferFormat, - BOOL Windowed) { - if (!IsSupportedAdapterFormat(AdapterFormat, Windowed)) - return false; - - return AdapterFormat == BackBufferFormat - || (AdapterFormat == D3D9Format::X8R8G8B8 && BackBufferFormat == D3D9Format::A8R8G8B8) - || (AdapterFormat == D3D9Format::X1R5G5B5 && BackBufferFormat == D3D9Format::A1R5G5B5); - } - - bool IsSupportedBackBufferFormat( D3D9Format BackBufferFormat, BOOL Windowed) { diff --git a/src/d3d9/d3d9_monitor.h b/src/d3d9/d3d9_monitor.h index 3f4f450c..8c187513 100644 --- a/src/d3d9/d3d9_monitor.h +++ b/src/d3d9/d3d9_monitor.h @@ -26,11 +26,6 @@ namespace dxvk { D3D9Format Format, BOOL Windowed); - bool IsSupportedBackBufferFormat( - D3D9Format AdapterFormat, - D3D9Format BackBufferFormat, - BOOL Windowed); - bool IsSupportedBackBufferFormat( D3D9Format BackBufferFormat, BOOL Windowed);