[gtk/matthiasc/for-master: 8/14] ngl: Always populate the glyph front cache




commit 1e014f42916f329e363beb1eeb440f8b27119282
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Mar 19 19:13:16 2021 -0400

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]