[dxgi] Enumerate interlaced modes if requested

This commit is contained in:
Joshua Ashton 2022-08-17 19:37:19 +00:00 committed by Philip Rebohle
parent af802fbff8
commit 16ff9b48cd
1 changed files with 2 additions and 2 deletions

View File

@ -301,8 +301,8 @@ namespace dxvk {
std::vector<DXGI_MODE_DESC1> modeList;
while (wsi::getDisplayMode(m_monitor, srcModeId++, &devMode)) {
// Skip interlaced modes altogether
if (devMode.interlaced)
// Only enumerate interlaced modes if requested.
if (devMode.interlaced && !(Flags & DXGI_ENUM_MODES_INTERLACED))
continue;
// Skip modes with incompatible formats