summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_font_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-21 00:30:23 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-21 20:02:23 +0100
commit5f5e95e336f027a92d61883c2247bcf3a98b5d02 (patch)
tree49eb4db8d0ea820745ee5c663129c888b998e363 /src/lib/evas/common/evas_font_main.c
parent79228cd723f0a73da30dc7c01593988f579dd3ff (diff)
evas - font rendering - dont crash if we have color fonts and gl and sw
so if you use sw and gl enignes in a process and have color font glyphs.. *BOOM* because the color glyph code used ext dat that was intended for engines to extend with a gotcha of "only 1 engine can extend this"... commented already. so this unfortunately adds an extra ptr per glyph to store color data explicitly. but now it both renders right and doesn't crash. we still have a limit of 1 engine alone can extend glyphs with ext_dat though. @fix
Diffstat (limited to '')
-rw-r--r--src/lib/evas/common/evas_font_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/evas/common/evas_font_main.c b/src/lib/evas/common/evas_font_main.c
index b99df9a927..1a163748ca 100644
--- a/src/lib/evas/common/evas_font_main.c
+++ b/src/lib/evas/common/evas_font_main.c
@@ -435,6 +435,7 @@ _glyph_free(RGBA_Font_Glyph *fg)
435 FT_Done_Glyph(fg->glyph); 435 FT_Done_Glyph(fg->glyph);
436 /* extension calls */ 436 /* extension calls */
437 if (fg->ext_dat_free) fg->ext_dat_free(fg->ext_dat); 437 if (fg->ext_dat_free) fg->ext_dat_free(fg->ext_dat);
438 if (fg->col_dat) evas_cache_image_drop(fg->col_dat);
438 free(fg); 439 free(fg);
439} 440}
440 441