From d356b95819ec62d631f0359d7b63c2337f6a32d1 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 7 Feb 2021 20:55:11 +1000 Subject: [PATCH] Qt: Move ImGui NewFrame/EndFrame to correct location --- src/duckstation-qt/qthostinterface.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 4c01d5e61..8443663e9 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -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()