forked from enlightenment/efl
hrrm. 0x0 textures - libGL in new nvidia drivers is most unhappy with! fix.
SVN revision: 33548
This commit is contained in:
parent
b35e3bd260
commit
d413c7c6b7
|
@ -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;
|
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));
|
ft = calloc(1, sizeof(Evas_GL_Font_Texture));
|
||||||
if (!ft) return NULL;
|
if (!ft) return NULL;
|
||||||
|
|
||||||
data = fg->glyph_out->bitmap.buffer;
|
data = fg->glyph_out->bitmap.buffer;
|
||||||
w = fg->glyph_out->bitmap.width;
|
|
||||||
h = fg->glyph_out->bitmap.rows;
|
|
||||||
j = fg->glyph_out->bitmap.pitch;
|
j = fg->glyph_out->bitmap.pitch;
|
||||||
if (j < w) j = w;
|
if (j < w) j = w;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue