glyph cache: Fix handling of big glyphs
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 22:26:09 +0000 (18:26 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Oct 2019 22:53:22 +0000 (18:53 -0400)
commit7bff3abe8e141955f2562991d0d93bd8e26b5324
tree77f93f8f8228f870d0c3c9b8419646ccf945a134
parente46a7ca70687b7ef15c237815bfe3f9269fc3956
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.
gsk/gl/gskglglyphcache.c
gsk/gl/gskglglyphcacheprivate.h
gsk/gl/gskglrenderer.c