CFrame: Prevent fullscreen switches if the renderer is halted.

This commit is contained in:
Jules Blok 2014-07-25 15:33:50 +02:00
parent bd9953d97e
commit eea7086b23
1 changed files with 11 additions and 0 deletions

View File

@ -1185,6 +1185,17 @@ void CFrame::OnMouse(wxMouseEvent& event)
void CFrame::DoFullscreen(bool bF)
{
if (g_Config.ExclusiveFullscreenEnabled() &&
!SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain &&
Core::GetState() != Core::CORE_RUN)
{
// A responsive renderer is required for exclusive fullscreen,
// but the renderer can only respond in the running state.
// Therefore we ignore fullscreen switches if we support
// exclusive fullscreen, but the renderer is not running.
return;
}
ToggleDisplayMode(bF);
#if defined(__APPLE__)