Skip to content

Commit

Permalink
[d3d9] Allow fourcc formats as the source in CheckFormatConversion
Browse files Browse the repository at this point in the history
The docs say:
"The source format must be a FOURCC format or a valid back buffer format."
  • Loading branch information
K0bin committed Jul 19, 2024
1 parent 884c174 commit da71f3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/d3d9/d3d9_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ namespace dxvk {
D3D9Format SourceFormat,
D3D9Format TargetFormat) {
bool sourceSupported = SourceFormat != D3D9Format::Unknown
&& IsSupportedBackBufferFormat(SourceFormat);
&& (IsSupportedBackBufferFormat(SourceFormat)
|| IsFourCCFormat(SourceFormat));
bool targetSupported = TargetFormat == D3D9Format::X1R5G5B5
|| TargetFormat == D3D9Format::A1R5G5B5
|| TargetFormat == D3D9Format::R5G6B5
Expand Down

0 comments on commit da71f3b

Please sign in to comment.