1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-20 19:54:19 +01:00

[d3d8] Validate CheckDeviceType windowed calls similarly to fullscreen

This commit is contained in:
WinterSnowfall 2024-10-04 15:34:58 +03:00 committed by Philip Rebohle
parent 653559979c
commit 4a8ba388ff

View File

@ -63,12 +63,15 @@ namespace dxvk {
D3DFORMAT AdapterFormat,
D3DFORMAT BackBufferFormat,
BOOL bWindowed) {
// Ignore the bWindowed parameter when querying D3D9. D3D8 does
// identical validations between windowed and fullscreen modes, adhering
// to the stricter fullscreen adapter and back buffer format validations.
return m_d3d9->CheckDeviceType(
Adapter,
(d3d9::D3DDEVTYPE)DevType,
(d3d9::D3DFORMAT)AdapterFormat,
(d3d9::D3DFORMAT)BackBufferFormat,
bWindowed
FALSE
);
}