diff options
Diffstat (limited to 'src/asset/asset_cache.c')
-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 | ||