summaryrefslogtreecommitdiffstats
path: root/minuitwrp/truetype.c
diff options
context:
space:
mode:
authorVojtech Bocek <vbocek@gmail.com>2015-03-06 00:28:21 +0100
committerEthan Yonker <dees_troy@teamw.in>2015-03-11 14:01:30 +0100
commit3041c887f152dd60fbb234a1038e6283cbff0310 (patch)
tree410682906033d8e76e090881dc56c7a78bbe5f04 /minuitwrp/truetype.c
parentImplement gr_line() and gr_render_circle() (diff)
downloadandroid_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/truetype.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/minuitwrp/truetype.c b/minuitwrp/truetype.c
index 998ab45dd..db70236a4 100644
--- a/minuitwrp/truetype.c
+++ b/minuitwrp/truetype.c
@@ -663,10 +663,11 @@ int gr_ttf_textExWH(void *context, int x, int y, const char *s, void *pFont, int
gl->texEnvi(gl, GGL_TEXTURE_ENV, GGL_TEXTURE_ENV_MODE, GGL_REPLACE);
gl->texGeni(gl, GGL_S, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE);
gl->texGeni(gl, GGL_T, GGL_TEXTURE_GEN_MODE, GGL_ONE_TO_ONE);
- gl->enable(gl, GGL_TEXTURE_2D);
+ gl->enable(gl, GGL_TEXTURE_2D);
gl->texCoord2i(gl, -x, -y);
gl->recti(gl, x, y, x + e->surface.width, y_bottom);
+ gl->disable(gl, GGL_TEXTURE_2D);
pthread_mutex_unlock(&font->mutex);
return res;