projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
726909d
)
gltextureatlas: Packing must succeed here
author
Timm Bäder
<mail@baedert.org>
Thu, 2 Jan 2020 13:03:21 +0000
(14:03 +0100)
committer
Timm Bäder
<mail@baedert.org>
Tue, 7 Jan 2020 16:27:18 +0000
(17:27 +0100)
gsk/gl/gskgltextureatlas.c
patch
|
blob
|
history
diff --git
a/gsk/gl/gskgltextureatlas.c
b/gsk/gl/gskgltextureatlas.c
index c1e03bc82688d7e672e0c54a202f6266130a5680..9db2d8e262d765eedc38ef47bbc77e351f5f8d3e 100644
(file)
--- 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"));
}