Qt: Move ImGui NewFrame/EndFrame to correct location

This commit is contained in:
Connor McLaughlin 2021-02-07 20:55:11 +10:00
parent 515b85fa36
commit d356b95819
1 changed files with 3 additions and 4 deletions

View File

@ -524,7 +524,6 @@ bool QtHostInterface::AcquireHostDisplay()
connectDisplaySignals(display_widget);
m_is_exclusive_fullscreen = m_display->IsFullscreen();
ImGui::NewFrame();
return true;
}
@ -1474,10 +1473,10 @@ void QtHostInterface::threadEntryPoint()
void QtHostInterface::renderDisplay()
{
DrawImGuiWindows();
m_display->Render();
ImGui::NewFrame();
DrawImGuiWindows();
m_display->Render();
ImGui::EndFrame();
}
void QtHostInterface::wakeThread()