Add logging when atlas allocator fails to allocate
This commit is contained in:
parent
7abd3a98a8
commit
0ca4c9946a
4 changed files with 16 additions and 4 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue