mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
D3D: Return to windowed mode before destroying the swapchain.
This commit is contained in:
@ -351,6 +351,9 @@ HRESULT Create(HWND wnd)
|
|||||||
|
|
||||||
void Close()
|
void Close()
|
||||||
{
|
{
|
||||||
|
// we can't release the swapchain while in fullscreen.
|
||||||
|
swapchain->SetFullscreenState(false, nullptr);
|
||||||
|
|
||||||
// release all bound resources
|
// release all bound resources
|
||||||
context->ClearState();
|
context->ClearState();
|
||||||
SAFE_RELEASE(backbuf);
|
SAFE_RELEASE(backbuf);
|
||||||
|
Reference in New Issue
Block a user