mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Qt/Host: Fix random crashes when exiting fullscreen
This commit is contained in:
parent
71f5fafb3b
commit
b9bd4ecbcb
@ -46,7 +46,10 @@ void Host::SetRenderFocus(bool focus)
|
|||||||
{
|
{
|
||||||
m_render_focus = focus;
|
m_render_focus = focus;
|
||||||
if (g_renderer && m_render_fullscreen && g_ActiveConfig.ExclusiveFullscreenEnabled())
|
if (g_renderer && m_render_fullscreen && g_ActiveConfig.ExclusiveFullscreenEnabled())
|
||||||
Core::RunAsCPUThread([focus] { g_renderer->SetFullscreen(focus); });
|
Core::RunAsCPUThread([focus] {
|
||||||
|
if (!SConfig::GetInstance().bRenderToMain)
|
||||||
|
g_renderer->SetFullscreen(focus);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Host::GetRenderFullscreen()
|
bool Host::GetRenderFullscreen()
|
||||||
@ -110,10 +113,7 @@ void Host_YieldToUI()
|
|||||||
|
|
||||||
void Host_UpdateDisasmDialog()
|
void Host_UpdateDisasmDialog()
|
||||||
{
|
{
|
||||||
RunOnObject(QApplication::instance(), [&] {
|
QueueOnObject(Host::GetInstance(), [] { emit Host::GetInstance()->UpdateDisasmDialog(); });
|
||||||
emit Host::GetInstance()->UpdateDisasmDialog();
|
|
||||||
return true;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
void Host_UpdateProgressDialog(const char* caption, int position, int total)
|
||||||
|
Loading…
Reference in New Issue
Block a user