ngl: Always populate the glyph front cache

There is no reason not to do this also in the
case when we upload the glyph.
This commit is contained in:
Matthias Clasen 2021-03-19 19:13:16 -04:00
parent fbe47106e7
commit 1e014f4291

View File

@ -108,6 +108,8 @@ gsk_ngl_glyph_library_lookup_or_add (GskNglGlyphLibrary *self,
GskNglGlyphKey *k = g_slice_copy (sizeof *key, key);
g_object_ref (k->font);
gsk_ngl_glyph_library_add (self, k, out_value);
self->front[front_index].key = *key;
self->front[front_index].value = *out_value;
}
return GSK_NGL_TEXTURE_ATLAS_ENTRY_TEXTURE (*out_value) != 0;