forked from minhngoc25a/freetype2
[cache] Fix fallouts from edd4fedc54
.
Reported by Werner. * src/cache/ftcimage.c (FTC_INode_New): Always initialize FT_Glyph. * src/cache/ftcsbits.c (FTC_SNode_New): Always initialize FT_SBit.
This commit is contained in:
parent
bee8886408
commit
983d435865
|
@ -74,6 +74,7 @@
|
|||
|
||||
/* initialize its inner fields */
|
||||
FTC_GNode_Init( gnode, gindex, family );
|
||||
inode->glyph = NULL;
|
||||
|
||||
/* we will now load the glyph image */
|
||||
error = clazz->family_load_glyph( family, gindex, cache,
|
||||
|
|
|
@ -248,7 +248,9 @@
|
|||
snode->count = count;
|
||||
for ( node_count = 0; node_count < count; node_count++ )
|
||||
{
|
||||
snode->sbits[node_count].width = 255;
|
||||
snode->sbits[node_count].width = 255;
|
||||
snode->sbits[node_count].height = 0;
|
||||
snode->sbits[node_count].buffer = NULL;
|
||||
}
|
||||
|
||||
error = ftc_snode_load( snode,
|
||||
|
|
Loading…
Reference in New Issue