From 1e014f42916f329e363beb1eeb440f8b27119282 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Mar 2021 19:13:16 -0400 Subject: [PATCH] ngl: Always populate the glyph front cache There is no reason not to do this also in the case when we upload the glyph. --- gsk/ngl/gsknglglyphlibraryprivate.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsk/ngl/gsknglglyphlibraryprivate.h b/gsk/ngl/gsknglglyphlibraryprivate.h index 8a2b421290..5bf240e5e1 100644 --- a/gsk/ngl/gsknglglyphlibraryprivate.h +++ b/gsk/ngl/gsknglglyphlibraryprivate.h @@ -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;