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:
Stenzek 2018-10-27 21:18:54 +10:00
parent 52828901ef
commit cb6ba59a44
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}