diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-10-12 18:26:09 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-10-12 18:53:22 -0400 |
commit | 7bff3abe8e141955f2562991d0d93bd8e26b5324 (patch) | |
tree | 77f93f8f8228f870d0c3c9b8419646ccf945a134 /gsk/gl/gskglglyphcacheprivate.h | |
parent | e46a7ca70687b7ef15c237815bfe3f9269fc3956 (diff) | |
download | gtk+-7bff3abe8e141955f2562991d0d93bd8e26b5324.tar.gz |
glyph cache: Fix handling of big glyphs
We were putting big glyphs in the cache, in their
own texture, but forgetting to mark the texture
as permanent, so it could be reused, leading to
occasional misrendering. Fix this by marking these
textures as permanent, and explicitly freeing them
when the cache entry gets old.
Diffstat (limited to 'gsk/gl/gskglglyphcacheprivate.h')
-rw-r--r-- | gsk/gl/gskglglyphcacheprivate.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gsk/gl/gskglglyphcacheprivate.h b/gsk/gl/gskglglyphcacheprivate.h index 75f7a8de19..16a6feb471 100644 --- a/gsk/gl/gskglglyphcacheprivate.h +++ b/gsk/gl/gskglglyphcacheprivate.h @@ -73,6 +73,7 @@ GskGLGlyphCache * gsk_gl_glyph_cache_new (GdkDisplay *display GskGLGlyphCache * gsk_gl_glyph_cache_ref (GskGLGlyphCache *self); void gsk_gl_glyph_cache_unref (GskGLGlyphCache *self); void gsk_gl_glyph_cache_begin_frame (GskGLGlyphCache *self, + GskGLDriver *driver, GPtrArray *removed_atlases); void gsk_gl_glyph_cache_lookup_or_add (GskGLGlyphCache *self, GlyphCacheKey *lookup, |