summaryrefslogtreecommitdiffstats
path: root/minui/graphics.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-06-06 02:10:23 +0200
committerTianjie Xu <xunchang@google.com>2018-06-06 02:10:23 +0200
commitccf00a2007a363f5847636f7b53c0c89311e09d4 (patch)
tree64dd5f526e92c55a271ce2749b44c61822671018 /minui/graphics.cpp
parentMerge "updater_sample: validate state only once" (diff)
downloadandroid_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.tar
android_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.tar.gz
android_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.tar.bz2
android_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.tar.lz
android_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.tar.xz
android_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.tar.zst
android_bootable_recovery-ccf00a2007a363f5847636f7b53c0c89311e09d4.zip
Diffstat (limited to 'minui/graphics.cpp')
-rw-r--r--minui/graphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/minui/graphics.cpp b/minui/graphics.cpp
index 3b386015a..c1aab412d 100644
--- a/minui/graphics.cpp
+++ b/minui/graphics.cpp
@@ -356,6 +356,10 @@ int gr_init() {
gr_flip();
gr_flip();
+ if (!gr_draw) {
+ printf("gr_init: gr_draw becomes nullptr after gr_flip\n");
+ return -1;
+ }
gr_rotate(DEFAULT_ROTATION);