From d413c7c6b75065f85ce3cb9e2faa2657a4e428a4 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Tue, 22 Jan 2008 05:31:25 +0000 Subject: [PATCH] hrrm. 0x0 textures - libGL in new nvidia drivers is most unhappy with! fix. SVN revision: 33548 --- legacy/evas/src/modules/engines/gl_common/evas_gl_font.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_font.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_font.c index ff4df81647..b1bc82ba09 100644 --- a/legacy/evas/src/modules/engines/gl_common/evas_gl_font.c +++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_font.c @@ -16,12 +16,14 @@ evas_gl_font_texture_new(Evas_GL_Context *gc, RGBA_Font_Glyph *fg) if (fg->ext_dat) return fg->ext_dat; + w = fg->glyph_out->bitmap.width; + h = fg->glyph_out->bitmap.rows; + + if ((w == 0) || (h == 0)) return NULL; ft = calloc(1, sizeof(Evas_GL_Font_Texture)); if (!ft) return NULL; data = fg->glyph_out->bitmap.buffer; - w = fg->glyph_out->bitmap.width; - h = fg->glyph_out->bitmap.rows; j = fg->glyph_out->bitmap.pitch; if (j < w) j = w;