mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 16:29:16 +01:00
[dxgi] Fix GetDisplayModeList1 output for DXGI_FORMAT_UNKNOWN
Fixes a wine test failure.
This commit is contained in:
parent
f5515075f2
commit
cd82669a85
@ -246,6 +246,12 @@ namespace dxvk {
|
||||
if (pNumModes == nullptr)
|
||||
return DXGI_ERROR_INVALID_CALL;
|
||||
|
||||
// Special case, just return zero modes
|
||||
if (EnumFormat == DXGI_FORMAT_UNKNOWN) {
|
||||
*pNumModes = 0;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
// Query monitor info to get the device name
|
||||
::MONITORINFOEXW monInfo;
|
||||
monInfo.cbSize = sizeof(monInfo);
|
||||
|
Loading…
x
Reference in New Issue
Block a user