From 4f75f2d266c5cfccbdcf5efca6c26d5c4d703cad Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 7 Feb 2021 20:54:42 +1000 Subject: [PATCH] Android: Move ImGui NewFrame/EndFrame to correct location --- android/app/src/cpp/android_host_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/cpp/android_host_interface.cpp b/android/app/src/cpp/android_host_interface.cpp index 366433f28..e618003a7 100644 --- a/android/app/src/cpp/android_host_interface.cpp +++ b/android/app/src/cpp/android_host_interface.cpp @@ -472,10 +472,11 @@ void AndroidHostInterface::EmulationThreadLoop(JNIEnv* env) // rendering { + ImGui::NewFrame(); DrawImGuiWindows(); m_display->Render(); - ImGui::NewFrame(); + ImGui::EndFrame(); if (System::IsRunning()) { @@ -528,7 +529,6 @@ bool AndroidHostInterface::AcquireHostDisplay() return false; } - ImGui::NewFrame(); return true; }