mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 07:29:17 +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() {
|
DxgiSwapChain::~DxgiSwapChain() {
|
||||||
if (IsWindow(m_desc.OutputWindow) && !m_desc.Windowed)
|
Com<IDXGIOutput> output;
|
||||||
LeaveFullscreenMode();
|
|
||||||
|
if (SUCCEEDED(m_adapter->GetOutputFromMonitor(m_monitor, &output)))
|
||||||
|
RestoreDisplayMode(output.ptr());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user