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:
Matthias Clasen 2024-01-29 01:10:07 -05:00
parent e6ec8133a5
commit 8d80f97597

View File

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