aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/evas/engines/gl_common/evas_gl_font.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-15 10:59:29 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-07-15 10:59:29 +0900
commit3c891b405897e97c9a99bbcc979da136206cb0a5 (patch)
treed0268d023016a858e1fe8c59a639a0de3a0f1ddc /src/modules/evas/engines/gl_common/evas_gl_font.c
parentefreet: set process priority on Windows too. (diff)
downloadefl-3c891b405897e97c9a99bbcc979da136206cb0a5.tar.gz
evas gl: cover some more cannot-allocate-texture cases.
Diffstat (limited to 'src/modules/evas/engines/gl_common/evas_gl_font.c')
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_font.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_font.c b/src/modules/evas/engines/gl_common/evas_gl_font.c
index d71c55b87a..e47c902307 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_font.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_font.c
@@ -83,6 +83,7 @@ evas_gl_font_texture_new(void *context, RGBA_Font_Glyph *fg)
// fh = h;
fh = fg->fi->max_h;
tex = evas_gl_common_texture_alpha_new(gc, ndata, w, h, fh);
+ if (!tex) return NULL;
tex->sx1 = ((double)(tex->x)) / (double)tex->pt->w;
tex->sy1 = ((double)(tex->y)) / (double)tex->pt->h;
tex->sx2 = ((double)(tex->x + tex->w)) / (double)tex->pt->w;