Fix render surface when using Render to Main and debugger

This fixes a regression introduced by de632fc9c.
This commit is contained in:
Léo Lam 2018-02-27 12:32:20 +01:00
parent 25a516bae3
commit 1de17d20e1

View File

@ -603,7 +603,7 @@ void CFrame::OnRenderParentResize(wxSizeEvent& event)
if (Core::GetState() != Core::State::Uninitialized)
{
int width, height;
m_render_frame->GetClientSize(&width, &height);
m_render_parent->GetClientSize(&width, &height);
if (!SConfig::GetInstance().bRenderToMain && !RendererIsFullscreen() &&
!m_render_frame->IsMaximized() && !m_render_frame->IsIconized())
{