From 4b3d57957333288a16451f23db28af60d34b121f Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Mon, 21 Jul 2014 20:10:54 +0200 Subject: [PATCH] Renderer: Only notify the host when exiting fullscreen --- Source/Core/VideoBackends/D3D/Render.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 40b316787f..1f883c18fe 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -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?