[gtk/wip/baedert/gl-rework] gltextureatlas: Packing must succeed here
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/gl-rework] gltextureatlas: Packing must succeed here
- Date: Fri, 3 Jan 2020 16:10:26 +0000 (UTC)
commit b04c783f57f6664ce49863dfe47deb40a42b2298
Author: Timm Bäder <mail baedert org>
Date: Thu Jan 2 14:03:21 2020 +0100
gltextureatlas: Packing must succeed here
gsk/gl/gskgltextureatlas.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]