diff options
author | Tianjie Xu <xunchang@google.com> | 2018-06-06 22:32:54 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-06-06 22:32:54 +0200 |
commit | c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b (patch) | |
tree | d6d714915fdd9bb45275a1ff2f1e1a99251a9959 /minui/graphics.cpp | |
parent | Merge "ui: join only if joinable." (diff) | |
parent | Merge "minui: Handle the failures from the drm backend in gr_init" (diff) | |
download | android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.gz android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.bz2 android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.lz android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.xz android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.tar.zst android_bootable_recovery-c8d9d6ca17ff7a3059002ff12ac23d00b8c25f6b.zip |
Diffstat (limited to '')
-rw-r--r-- | minui/graphics.cpp | 4 |
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); |