fix sprite log formatting

This commit is contained in:
jacob 2024-08-21 17:50:23 -05:00
parent c4dd372041
commit 0d33c5746f
5 changed files with 10 additions and 7 deletions

BIN
res/graphics/box.ase (Stored with Git LFS) Normal file

Binary file not shown.

BIN
res/graphics/bullet.ase (Stored with Git LFS)

Binary file not shown.

BIN
res/graphics/gun.ase (Stored with Git LFS)

Binary file not shown.

BIN
res/graphics/tim.ase (Stored with Git LFS)

Binary file not shown.

View File

@ -371,7 +371,7 @@ INTERNAL void cache_node_load_texture(struct cache_node *n, struct sprite_tag ta
/* TODO: Query renderer for more accurate texture size in VRAM */ /* TODO: Query renderer for more accurate texture size in VRAM */
memory_size += (decoded.image.width * decoded.image.height) * sizeof(*decoded.image.pixels); memory_size += (decoded.image.width * decoded.image.height) * sizeof(*decoded.image.pixels);
} else { } else {
logf_error("Sprite \"%F\" not found", path); logf_error("Sprite \"%F\" not found", FMT_STR(path));
} }
#if RESOURCE_RELOADING #if RESOURCE_RELOADING
u64 cpy_len = min_u64(tag.path.len, ARRAY_COUNT(n->tag_path)); u64 cpy_len = min_u64(tag.path.len, ARRAY_COUNT(n->tag_path));