Renderer: Only notify the host when exiting fullscreen

This commit is contained in:
Jules Blok 2014-07-21 20:10:54 +02:00
parent 0c81494c89
commit 4b3d579573
1 changed files with 6 additions and 1 deletions

View File

@ -984,7 +984,12 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
{
s_last_fullscreen_mode = fullscreen;
D3D::swapchain->SetFullscreenState(fullscreen, nullptr);
Host_RequestFullscreen(fullscreen);
// notify the host that it is safe to exit fullscreen
if (!fullscreen)
{
Host_RequestFullscreen(false);
}
}
// TODO: Aren't we still holding a reference to the back buffer right now?