Permalink
Browse files

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.
  • Loading branch information...
stenzek committed Oct 27, 2018
1 parent 5282890 commit cb6ba59a4434591d91c920ac5735b098ad41112f
Showing with 4 additions and 0 deletions.
  1. +4 −0 Source/Core/DolphinQt/Host.cpp
@@ -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);
}

0 comments on commit cb6ba59

Please sign in to comment.