mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Renderer: Only notify the host when exiting fullscreen
This commit is contained in:
@ -984,7 +984,12 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbHeight,const EFBRectangl
|
|||||||
{
|
{
|
||||||
s_last_fullscreen_mode = fullscreen;
|
s_last_fullscreen_mode = fullscreen;
|
||||||
D3D::swapchain->SetFullscreenState(fullscreen, nullptr);
|
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?
|
// TODO: Aren't we still holding a reference to the back buffer right now?
|
||||||
|
Reference in New Issue
Block a user