aboutsummaryrefslogtreecommitdiff
path: root/src/asset/asset_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/asset/asset_cache.c')
-rw-r--r--src/asset/asset_cache.c2
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
180void gfx_init_asset_cache(AssetCache* cache) { 180void 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
190void gfx_destroy_asset_cache(AssetCache* cache) { 191void 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