From 462c3d84251ff15eff07d20caf013c455786aa71 Mon Sep 17 00:00:00 2001 From: Kelbo Date: Sat, 28 Nov 2026 10:32:45 -0500 Subject: [PATCH] Fix black screen on multi-plane presents --- src/startup_stubs/d3d12_xs_device.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/startup_stubs/d3d12_xs_device.cpp b/src/startup_stubs/d3d12_xs_device.cpp index 56dbe26c48..706d347e5a 100644 --- a/src/startup_stubs/d3d12_xs_device.cpp +++ b/src/startup_stubs/d3d12_xs_device.cpp @@ -7479,8 +7479,10 @@ PresentedPlanes presented_planes(UINT planes, const void* plane_parameters) PresentedPlanes out; std::uint64_t shown[window_planes] = {}; const unsigned total = planes < window_planes ? planes : window_planes; + // If multiple planes are presented, default to compositing them all to avoid black screens + // when plane 0 is empty or black (common in some titles). const unsigned only = wanted >= 0 ? (static_cast(wanted) < planes ? static_cast(wanted) : 0u) - : present_composite_enabled() ? ~0u + : (present_composite_enabled() || planes > 1) ? ~0u : 0u; for (unsigned i = 0; i < total; ++i) { if (only != ~0u && i != only) continue;