mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-09-21 03:41:42 +02:00
D3D: Return to windowed mode before destroying the swapchain.
This commit is contained in:
parent
77bc879384
commit
961076a3d5
1 changed files with 3 additions and 0 deletions
|
@ -351,6 +351,9 @@ HRESULT Create(HWND wnd)
|
|||
|
||||
void Close()
|
||||
{
|
||||
// we can't release the swapchain while in fullscreen.
|
||||
swapchain->SetFullscreenState(false, nullptr);
|
||||
|
||||
// release all bound resources
|
||||
context->ClearState();
|
||||
SAFE_RELEASE(backbuf);
|
||||
|
|
Loading…
Reference in a new issue