upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/shims/dxgi_com.cpp
diff options
context:
space:
mode:
authorSHAURYASANYAL3 <shauryasanya.21jun@gmail.com>2026-11-22 21:06:52 +0530
committerSHAURYASANYAL3 <shauryasanya.21jun@gmail.com>2026-11-22 23:12:44 +0530
commitfd9bc1413151037eee12e45329a3f56c460b8901 (patch)
tree1be4bb171bf76cfdddc465e122e6198d8b249e1c /runtime/shims/dxgi_com.cpp
parent342eef5eb5e3b5796909a19477039627dae50101 (diff)
dxgi: return DXGI_STATUS_OCCLUDED on CreateSwapChain fullscreen fallback and add test
Diffstat (limited to 'runtime/shims/dxgi_com.cpp')
-rw-r--r--runtime/shims/dxgi_com.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/shims/dxgi_com.cpp b/runtime/shims/dxgi_com.cpp
index d418850b4..337c7c5bd 100644
--- a/runtime/shims/dxgi_com.cpp
+++ b/runtime/shims/dxgi_com.cpp
@@ -802,6 +802,11 @@ public:
802 const HRESULT hr = CreateSwapChainForHwnd(device, desc->OutputWindow, &desc1, &fs_desc, nullptr, &sc1); 802 const HRESULT hr = CreateSwapChainForHwnd(device, desc->OutputWindow, &desc1, &fs_desc, nullptr, &sc1);
803 if (SUCCEEDED(hr) && sc1) { 803 if (SUCCEEDED(hr) && sc1) {
804 *out = static_cast<IDXGISwapChain*>(sc1); 804 *out = static_cast<IDXGISwapChain*>(sc1);
805 if (!desc->Windowed) {
806 // When exclusive fullscreen is unavailable, native DXGI creates the
807 // windowed chain and returns DXGI_STATUS_OCCLUDED.
808 return DXGI_STATUS_OCCLUDED;
809 }
805 } 810 }
806 return hr; 811 return hr;
807 } 812 }