From: Matthias Clasen Date: Wed, 16 Oct 2019 02:52:28 +0000 (-0400) Subject: Fix a crash with glyph caching X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~705^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d777300d4e4536fa12c5a82c370061d024a9baee;p=gtk4.git Fix a crash with glyph caching We need to treat atlas-less cached glyphs like atlases, when it comes to invalidating text node render data. --- diff --git a/gsk/gl/gskglglyphcache.c b/gsk/gl/gskglglyphcache.c index 5571293ee5..80216ab5be 100644 --- a/gsk/gl/gskglglyphcache.c +++ b/gsk/gl/gskglglyphcache.c @@ -362,6 +362,12 @@ gsk_gl_glyph_cache_begin_frame (GskGLGlyphCache *self, { gsk_gl_driver_destroy_texture (driver, value->texture_id); g_hash_table_iter_remove (&iter); + + /* Sadly, if we drop an atlas-less cached glyph, we + * have to treat it like a dropped atlas and purge + * text node render data. + */ + self->atlas_timestamp++; } } else