mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[dxgi] Restore display mode even when the window got destroyed
This commit is contained in:
parent
46f2e4d864
commit
4c298d486d
@ -60,8 +60,10 @@ namespace dxvk {
|
||||
|
||||
|
||||
DxgiSwapChain::~DxgiSwapChain() {
|
||||
if (IsWindow(m_desc.OutputWindow) && !m_desc.Windowed)
|
||||
LeaveFullscreenMode();
|
||||
Com<IDXGIOutput> output;
|
||||
|
||||
if (SUCCEEDED(m_adapter->GetOutputFromMonitor(m_monitor, &output)))
|
||||
RestoreDisplayMode(output.ptr());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user