Merge pull request #6407 from leoetlino/master

Fix render surface when using Render to Main and debugger (regression fix)
This commit is contained in:
JosJuice 2018-02-27 16:13:29 +01:00 committed by GitHub
commit cc7d7c9a49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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())
{