diff options
| author | 3gg <3gg@shellblade.net> | 2025-07-02 08:49:48 -0700 |
|---|---|---|
| committer | 3gg <3gg@shellblade.net> | 2025-07-02 08:49:48 -0700 |
| commit | dba3ce51eeab2485f757143ab7560e89590824b8 (patch) | |
| tree | 29abe8afa0e4e4b80ef288cb51ac4b38961915ea /src/asset | |
| parent | 394e0c03bc892be6d3a6ddc5209f1cb284e3f38e (diff) | |
Add comments and TODOs
Diffstat (limited to 'src/asset')
| -rw-r--r-- | src/asset/asset_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/asset/asset_cache.c b/src/asset/asset_cache.c index 16c4d5c..727b63f 100644 --- a/src/asset/asset_cache.c +++ b/src/asset/asset_cache.c | |||
| @@ -179,6 +179,7 @@ static Model* clone_model(const Model* model) { | |||
| 179 | 179 | ||
| 180 | void gfx_init_asset_cache(AssetCache* cache) { | 180 | void gfx_init_asset_cache(AssetCache* cache) { |
| 181 | assert(cache); | 181 | assert(cache); |
| 182 | |||
| 182 | mempool_make(&cache->assets); | 183 | mempool_make(&cache->assets); |
| 183 | 184 | ||
| 184 | // Allocate a dummy asset at index 0 to guarantee that no assets allocated by | 185 | // Allocate a dummy asset at index 0 to guarantee that no assets allocated by |
| @@ -189,6 +190,7 @@ void gfx_init_asset_cache(AssetCache* cache) { | |||
| 189 | 190 | ||
| 190 | void gfx_destroy_asset_cache(AssetCache* cache) { | 191 | void gfx_destroy_asset_cache(AssetCache* cache) { |
| 191 | assert(cache); | 192 | assert(cache); |
| 193 | // TODO: Destroy assets here. | ||
| 192 | mempool_del(&cache->assets); | 194 | mempool_del(&cache->assets); |
| 193 | } | 195 | } |
| 194 | 196 | ||
