[gtk/matthiasc/for-master: 4/6] ngl: Add padding between cached glyphs
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 4/6] ngl: Add padding between cached glyphs
- Date: Sun, 16 May 2021 02:23:53 +0000 (UTC)
commit cb1babeebaeb7d19fd721ea503c46a79536aae2a
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 14 18:43:52 2021 -0400
ngl: Add padding between cached glyphs
Without this, adjacent items in the cache sometimes
bleed into the texture for a glyph.
gsk/ngl/gsknglglyphlibrary.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/ngl/gsknglglyphlibrary.c b/gsk/ngl/gsknglglyphlibrary.c
index 2179a804d7..3f998f4a05 100644
--- a/gsk/ngl/gsknglglyphlibrary.c
+++ b/gsk/ngl/gsknglglyphlibrary.c
@@ -318,7 +318,7 @@ gsk_ngl_glyph_library_add (GskNglGlyphLibrary *self,
sizeof *value,
width,
height,
- 0,
+ 1,
&packed_x, &packed_y);
memcpy (&value->ink_rect, &ink_rect, sizeof ink_rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]