summaryrefslogtreecommitdiff
path: root/src/resource.c
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-12 22:33:11 +0200
committerLizzy Fleckenstein <lizzy@vlhl.dev>2026-04-12 22:33:11 +0200
commit5aa88cf26954a738d0f22a7c90bb33f1df422919 (patch)
tree069e4151823ba1d4a00c477571b7a3c8376f2950 /src/resource.c
parentf114edae9a6a84c1b618dd36c4e4a73c39c6abb8 (diff)
downloadanimtool-5aa88cf26954a738d0f22a7c90bb33f1df422919.tar.xz
minor refactors
Diffstat (limited to 'src/resource.c')
-rw-r--r--src/resource.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/resource.c b/src/resource.c
index 8a0fa6c..2b617d4 100644
--- a/src/resource.c
+++ b/src/resource.c
@@ -82,18 +82,6 @@ static mesh_id create_mesh(struct mesh_source *mesh, struct source *src, struct
void texture_load(struct texture *texture, struct source *src, struct draw_backend *draw, struct cache *cache)
{
- /*
- texture_id id, *p_id = nullptr;
- map_find(&cache->textures[tex->source.type], tex->source.path, &p_id);
- if (p_id) {
- id = *p_id;
- } else {
- id = create_texture(&tex->source, src, draw);
- map_insert_end(&cache->textures[tex->source.type], tex->source.path, id);
- }
- free(tex->source.path.str);
- tex->id = id;
- */
LOAD_CACHED(texture, textures[texture->source.type]);
}