mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
gpu: free non-atlased glyphs
"Only free glyphs when their atlas is freed" works great for glyphs that are on an atlas. Don't forget the others.
This commit is contained in:
parent
e6ec8133a5
commit
8d80f97597
@ -391,7 +391,12 @@ gsk_gpu_cached_glyph_should_collect (GskGpuDevice *device,
|
||||
gint64 timestamp)
|
||||
{
|
||||
if (gsk_gpu_cached_is_old (device, cached, timestamp))
|
||||
{
|
||||
if (cached->atlas)
|
||||
mark_as_stale (cached, TRUE);
|
||||
else
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* Glyphs are only collected when their atlas is freed */
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user