mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
Host: Don't call ChangeSurface when handle hasn't changed
This was causing a deadlock when switching to fullscreen in render-to-main-window mode.
This commit is contained in:
parent
52828901ef
commit
cb6ba59a44
@ -32,6 +32,10 @@ Host* Host::GetInstance()
|
||||
|
||||
void Host::SetRenderHandle(void* handle)
|
||||
{
|
||||
if (m_render_handle == handle)
|
||||
return;
|
||||
|
||||
m_render_handle = handle;
|
||||
if (g_renderer)
|
||||
g_renderer->ChangeSurface(handle);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user