mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d9] Allow A2R10G10B10 backbuffer format in Windowed
This commit is contained in:
parent
ff9d451a4e
commit
58d6f018bb
@ -28,22 +28,22 @@ namespace dxvk {
|
|||||||
bool IsSupportedAdapterFormat(
|
bool IsSupportedAdapterFormat(
|
||||||
D3D9Format Format,
|
D3D9Format Format,
|
||||||
BOOL Windowed) {
|
BOOL Windowed) {
|
||||||
return (Format == D3D9Format::A2R10G10B10 && !Windowed)
|
return Format == D3D9Format::A2R10G10B10
|
||||||
|| Format == D3D9Format::X8R8G8B8
|
|| Format == D3D9Format::X8R8G8B8
|
||||||
|| Format == D3D9Format::X1R5G5B5
|
|| Format == D3D9Format::X1R5G5B5
|
||||||
|| Format == D3D9Format::R5G6B5;
|
|| Format == D3D9Format::R5G6B5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool IsSupportedBackBufferFormat(
|
bool IsSupportedBackBufferFormat(
|
||||||
D3D9Format BackBufferFormat,
|
D3D9Format BackBufferFormat,
|
||||||
BOOL Windowed) {
|
BOOL Windowed) {
|
||||||
return (BackBufferFormat == D3D9Format::A2R10G10B10 && !Windowed)
|
return BackBufferFormat == D3D9Format::A2R10G10B10
|
||||||
|| BackBufferFormat == D3D9Format::A8R8G8B8
|
|| BackBufferFormat == D3D9Format::A8R8G8B8
|
||||||
|| BackBufferFormat == D3D9Format::X8R8G8B8
|
|| BackBufferFormat == D3D9Format::X8R8G8B8
|
||||||
|| BackBufferFormat == D3D9Format::A1R5G5B5
|
|| BackBufferFormat == D3D9Format::A1R5G5B5
|
||||||
|| BackBufferFormat == D3D9Format::X1R5G5B5
|
|| BackBufferFormat == D3D9Format::X1R5G5B5
|
||||||
|| BackBufferFormat == D3D9Format::R5G6B5;
|
|| BackBufferFormat == D3D9Format::R5G6B5;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user