summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2019-10-05 14:07:28 +0200
committerJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2019-10-05 14:07:28 +0200
commitd0dccb92c520556aaa02bd1fdf8f2922cef00292 (patch)
treecc5828dec412de00fdec9013fa5dbcb0928e3837
parent52a7c79fd4ff96bb5fac175f0199819b0f8c18fc (diff)
image compositor: Remove the right glyph from pixman's cache
We need to use the index including the phase. Otherwise we leave glyphs in the cache that cause problems later as indices are reused.
-rw-r--r--src/cairo-image-compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-image-compositor.c b/src/cairo-image-compositor.c
index 6fccb79f1..79ad69f68 100644
--- a/src/cairo-image-compositor.c
+++ b/src/cairo-image-compositor.c
@@ -841,7 +841,7 @@ _cairo_image_scaled_glyph_fini (cairo_scaled_font_t *scaled_font,
if (global_glyph_cache) {
pixman_glyph_cache_remove (
global_glyph_cache, scaled_font,
- (void *)_cairo_scaled_glyph_index (scaled_glyph));
+ (void *)scaled_glyph->hash_entry.hash);
}
CAIRO_MUTEX_UNLOCK (_cairo_glyph_cache_mutex);