From 58d6f018bb12eef96afa3e1597f5e42b673e2221 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sat, 6 Feb 2021 08:43:37 +0000 Subject: [PATCH] [d3d9] Allow A2R10G10B10 backbuffer format in Windowed --- src/d3d9/d3d9_monitor.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/d3d9/d3d9_monitor.cpp b/src/d3d9/d3d9_monitor.cpp index 559dea266..94a3da927 100644 --- a/src/d3d9/d3d9_monitor.cpp +++ b/src/d3d9/d3d9_monitor.cpp @@ -28,22 +28,22 @@ namespace dxvk { bool IsSupportedAdapterFormat( D3D9Format Format, BOOL Windowed) { - return (Format == D3D9Format::A2R10G10B10 && !Windowed) - || Format == D3D9Format::X8R8G8B8 - || Format == D3D9Format::X1R5G5B5 - || Format == D3D9Format::R5G6B5; + return Format == D3D9Format::A2R10G10B10 + || Format == D3D9Format::X8R8G8B8 + || Format == D3D9Format::X1R5G5B5 + || Format == D3D9Format::R5G6B5; } bool IsSupportedBackBufferFormat( D3D9Format BackBufferFormat, BOOL Windowed) { - return (BackBufferFormat == D3D9Format::A2R10G10B10 && !Windowed) - || BackBufferFormat == D3D9Format::A8R8G8B8 - || BackBufferFormat == D3D9Format::X8R8G8B8 - || BackBufferFormat == D3D9Format::A1R5G5B5 - || BackBufferFormat == D3D9Format::X1R5G5B5 - || BackBufferFormat == D3D9Format::R5G6B5; + return BackBufferFormat == D3D9Format::A2R10G10B10 + || BackBufferFormat == D3D9Format::A8R8G8B8 + || BackBufferFormat == D3D9Format::X8R8G8B8 + || BackBufferFormat == D3D9Format::A1R5G5B5 + || BackBufferFormat == D3D9Format::X1R5G5B5 + || BackBufferFormat == D3D9Format::R5G6B5; } -} \ No newline at end of file +}