diff options
Diffstat (limited to 'src/resource.c')
| -rw-r--r-- | src/resource.c | 12 |
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]); } |
