diff options
author | Doug Zongker <dougz@google.com> | 2012-09-04 23:28:25 +0200 |
---|---|---|
committer | Doug Zongker <dougz@google.com> | 2012-09-04 23:28:25 +0200 |
commit | 52eeea4fa59c15ecb09c32b8e05653f4e55f5188 (patch) | |
tree | d26dc6dc861c69c8f80ae9aac9a13b14bee3381b /minui/graphics.c | |
parent | fix format of installing_text (diff) | |
download | android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.tar android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.tar.gz android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.tar.bz2 android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.tar.lz android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.tar.xz android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.tar.zst android_bootable_recovery-52eeea4fa59c15ecb09c32b8e05653f4e55f5188.zip |
Diffstat (limited to '')
-rw-r--r-- | minui/graphics.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/minui/graphics.c b/minui/graphics.c index 88572a878..287878e92 100644 --- a/minui/graphics.c +++ b/minui/graphics.c @@ -245,6 +245,9 @@ int gr_text(int x, int y, const char *s) } void gr_texticon(int x, int y, gr_surface icon) { + if (gr_context == NULL || icon == NULL) { + return; + } GGLContext* gl = gr_context; gl->bindTexture(gl, (GGLSurface*) icon); @@ -268,7 +271,7 @@ void gr_fill(int x, int y, int w, int h) } void gr_blit(gr_surface source, int sx, int sy, int w, int h, int dx, int dy) { - if (gr_context == NULL) { + if (gr_context == NULL || source == NULL) { return; } GGLContext *gl = gr_context; |