mirror of https://github.com/doitsujin/dxvk
[d3d9] Explicitly check for Unknown in CheckDeviceFormatConversion
This commit is contained in:
parent
8513ab4d77
commit
05416c3731
|
@ -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…
Reference in New Issue