Add logging when atlas allocator fails to allocate

This commit is contained in:
Keith Simmons 2022-04-11 10:31:38 -07:00
parent 7abd3a98a8
commit 0ca4c9946a
4 changed files with 16 additions and 4 deletions

View file

@ -117,7 +117,7 @@ impl SpriteCache {
let (alloc_id, atlas_bounds) = atlases
.upload(glyph_bounds.size(), &mask)
.expect("Could not upload glyph");
.expect("could not upload glyph");
Some(GlyphSprite {
atlas_id: alloc_id.atlas_id,
atlas_origin: atlas_bounds.origin(),