diff options
author | Vojtech Bocek <vbocek@gmail.com> | 2015-03-06 00:28:21 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2015-03-11 14:01:30 +0100 |
commit | 3041c887f152dd60fbb234a1038e6283cbff0310 (patch) | |
tree | 410682906033d8e76e090881dc56c7a78bbe5f04 /minuitwrp/graphics.c | |
parent | Implement gr_line() and gr_render_circle() (diff) | |
download | android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.tar android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.tar.gz android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.tar.bz2 android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.tar.lz android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.tar.xz android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.tar.zst android_bootable_recovery-3041c887f152dd60fbb234a1038e6283cbff0310.zip |
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/graphics.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/minuitwrp/graphics.c b/minuitwrp/graphics.c index 077211064..10d74a7a7 100644 --- a/minuitwrp/graphics.c +++ b/minuitwrp/graphics.c @@ -466,6 +466,8 @@ int gr_textEx(int x, int y, const char *s, void* pFont) } } + gl->disable(gl, GGL_TEXTURE_2D); + return x; } @@ -508,6 +510,8 @@ int gr_textExW(int x, int y, const char *s, void* pFont, int max_width) } } + gl->disable(gl, GGL_TEXTURE_2D); + return x; } @@ -555,6 +559,8 @@ int gr_textExWH(int x, int y, const char *s, void* pFont, int max_width, int max } } + gl->disable(gl, GGL_TEXTURE_2D); + return x; } @@ -579,7 +585,6 @@ void gr_fill(int x, int y, int w, int h) if(gr_is_curr_clr_opaque) gl->disable(gl, GGL_BLEND); - gl->disable(gl, GGL_TEXTURE_2D); gl->recti(gl, x, y, x + w, y + h); if(gr_is_curr_clr_opaque) @@ -649,6 +654,7 @@ void gr_blit(gr_surface source, int sx, int sy, int w, int h, int dx, int dy) { gl->enable(gl, GGL_TEXTURE_2D); gl->texCoord2i(gl, sx - dx, sy - dy); gl->recti(gl, dx, dy, dx + w, dy + h); + gl->disable(gl, GGL_TEXTURE_2D); if(surface->format == GGL_PIXEL_FORMAT_RGBX_8888) gl->enable(gl, GGL_BLEND); |