[gtk/matthiasc/for-master: 2/7] ngl: Always populate the glyph front cache
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 2/7] ngl: Always populate the glyph front cache
- Date: Sun, 21 Mar 2021 01:11:52 +0000 (UTC)
commit 5f9b2c74ec181a58b64e29ad32b78eb6e7cc7e55
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]