From: Timm Bäder Date: Thu, 2 Jan 2020 13:03:21 +0000 (+0100) Subject: gltextureatlas: Packing must succeed here X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~371 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6ba6f361bec43e48682815070d8e4b04bc5a0fe2;p=gtk4.git gltextureatlas: Packing must succeed here --- diff --git a/gsk/gl/gskgltextureatlas.c b/gsk/gl/gskgltextureatlas.c index c1e03bc826..9db2d8e262 100644 --- a/gsk/gl/gskgltextureatlas.c +++ b/gsk/gl/gskgltextureatlas.c @@ -166,7 +166,8 @@ gsk_gl_texture_atlases_pack (GskGLTextureAtlases *self, g_ptr_array_add (self->atlases, atlas); /* Pack it onto that one, which surely has enough space... */ - gsk_gl_texture_atlas_pack (atlas, width, height, &x, &y); + if (!gsk_gl_texture_atlas_pack (atlas, width, height, &x, &y)) + g_assert_not_reached (); GSK_NOTE(GLYPH_CACHE, g_message ("adding new atlas")); }