Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ashton <joshua@froggi.es>2022-08-17 22:37:19 +0300
committerJoshua Ashton <joshua@froggi.es>2022-08-17 22:45:45 +0300
commit8e1fe3d4f0a14305ab058f854972c18bf65d5dcd (patch)
tree9d0e29f1eb2fde42585aad9fd8c753e4b1a44834
parent7d8446adc8ead591dc6fbbf2935204665c521b7e (diff)
[dxgi] Enumerate interlaced modes if requestedwsi-abstraction
-rw-r--r--src/dxgi/dxgi_output.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp
index 81a4671e..8fb52e82 100644
--- a/src/dxgi/dxgi_output.cpp
+++ b/src/dxgi/dxgi_output.cpp
@@ -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