ngl: Add padding between cached glyphs

Without this, adjacent items in the cache sometimes
bleed into the texture for a glyph.
This commit is contained in:
Matthias Clasen
2021-05-14 18:43:52 -04:00
parent 67dc778b8f
commit cb1babeeba

View File

@@ -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);