Merge branch 'texture-atlas-crash' into 'main'
gl: Avoid a crash in the texture library Closes #5175 See merge request GNOME/gtk!5501
This commit is contained in:
@@ -112,7 +112,8 @@ gsk_gl_texture_library_real_compact (GskGLTextureLibrary *self,
|
||||
{
|
||||
if (!entry->accessed)
|
||||
{
|
||||
gsk_gl_driver_release_texture (self->driver, entry->texture);
|
||||
if (entry->texture)
|
||||
gsk_gl_driver_release_texture (self->driver, entry->texture);
|
||||
g_hash_table_iter_remove (&iter);
|
||||
dropped++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user