From 5aa88cf26954a738d0f22a7c90bb33f1df422919 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Sun, 12 Apr 2026 22:33:11 +0200 Subject: minor refactors --- src/resource.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/resource.c') 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]); } -- cgit v1.2.3