summaryrefslogtreecommitdiff
path: root/platform/android/java_godot_lib_jni.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-04-25 12:32:26 +0200
committerGitHub <noreply@github.com>2022-04-25 12:32:26 +0200
commit6a9115b983384f5dce341b22268dbc7f4a12f64e (patch)
treed85b9d9bbb3768ee0dcd870b5452f77b885463b8 /platform/android/java_godot_lib_jni.cpp
parentd9d871dfbf661b329269d7c70a631e3405602e63 (diff)
parent3b1e62bc7ce9a0d8b48bb27661b328f7e6daabc7 (diff)
Merge pull request #60506 from m4gr3d/fix_low_processor_mode_rendering_after_resume_main
Diffstat (limited to 'platform/android/java_godot_lib_jni.cpp')
-rw-r--r--platform/android/java_godot_lib_jni.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/java_godot_lib_jni.cpp b/platform/android/java_godot_lib_jni.cpp
index ea72bc0e15..5e0a9d967b 100644
--- a/platform/android/java_godot_lib_jni.cpp
+++ b/platform/android/java_godot_lib_jni.cpp
@@ -503,6 +503,8 @@ JNIEXPORT void JNICALL Java_org_godotengine_godot_GodotLib_onRendererResumed(JNI
return;
}
+ // We force redraw to ensure we render at least once when resuming the app.
+ Main::force_redraw();
if (os_android->get_main_loop()) {
os_android->get_main_loop()->notification(MainLoop::NOTIFICATION_APPLICATION_RESUMED);
}