mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[d3d9] Explicitly check for Unknown in CheckDeviceFormatConversion
This commit is contained in:
parent
10b174b52c
commit
95995041b0
@ -236,7 +236,8 @@ namespace dxvk {
|
||||
D3DDEVTYPE DeviceType,
|
||||
D3D9Format SourceFormat,
|
||||
D3D9Format TargetFormat) {
|
||||
bool sourceSupported = IsSupportedBackBufferFormat(D3D9Format::Unknown, SourceFormat, TRUE);
|
||||
bool sourceSupported = SourceFormat != D3D9Format::Unknown
|
||||
&& IsSupportedBackBufferFormat(SourceFormat);
|
||||
bool targetSupported = TargetFormat == D3D9Format::X1R5G5B5
|
||||
|| TargetFormat == D3D9Format::A1R5G5B5
|
||||
|| TargetFormat == D3D9Format::R5G6B5
|
||||
|
Loading…
x
Reference in New Issue
Block a user