From 16ff9b48cdc05fb82f526fdc66fc87e1528a8d71 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Wed, 17 Aug 2022 19:37:19 +0000 Subject: [PATCH] [dxgi] Enumerate interlaced modes if requested --- src/dxgi/dxgi_output.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp index 81a4671ea..8fb52e82c 100644 --- a/src/dxgi/dxgi_output.cpp +++ b/src/dxgi/dxgi_output.cpp @@ -301,8 +301,8 @@ namespace dxvk { std::vector 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