Fix regression in master. The attempt to remove the last frame hack in
all apps caused home to sometimes render black upon returning from an application.
Change-Id: I4444d7a6e62548f5a996c12b7e11aa46876d44e4
diff --git a/res/raw/allapps.rs b/res/raw/allapps.rs
index 9342943..7eb670a 100644
--- a/res/raw/allapps.rs
+++ b/res/raw/allapps.rs
@@ -79,8 +79,12 @@
static int g_DrawLastFrame;
static int lastFrame(int draw) {
+ // We draw one extra frame to work around the last frame post bug.
+ // We also need to track if we drew the last frame to deal with large DT
+ // in the physics.
+ int ret = g_DrawLastFrame | draw;
g_DrawLastFrame = draw;
- return draw;
+ return ret;//draw;
}
static void updateReadback() {
diff --git a/res/raw/allapps_bc.bc b/res/raw/allapps_bc.bc
index d73db54..4cb3ecc 100644
--- a/res/raw/allapps_bc.bc
+++ b/res/raw/allapps_bc.bc
Binary files differ