hrrm. 0x0 textures - libGL in new nvidia drivers is most unhappy with! fix.

SVN revision: 33548
This commit is contained in:
Carsten Haitzler 2008-01-22 05:31:25 +00:00
parent b35e3bd260
commit d413c7c6b7
1 changed files with 4 additions and 2 deletions

View File

@ -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;