summaryrefslogtreecommitdiff
path: root/gfx/src/asset/asset_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/src/asset/asset_cache.c')
-rw-r--r--gfx/src/asset/asset_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/src/asset/asset_cache.c b/gfx/src/asset/asset_cache.c
index 2fa57ad..fd9f1f8 100644
--- a/gfx/src/asset/asset_cache.c
+++ b/gfx/src/asset/asset_cache.c
@@ -113,7 +113,7 @@ void gfx_destroy_asset_cache(AssetCache* cache) {
113} 113}
114 114
115SceneNode* gfx_load_scene( 115SceneNode* gfx_load_scene(
116 Gfx* gfx, SceneNode* root_node, const LoadSceneCmd* cmd) { 116 Gfx* gfx, SceneNode* parent_node, const LoadSceneCmd* cmd) {
117 assert(gfx); 117 assert(gfx);
118 118
119 AssetCache* cache = gfx_get_asset_cache(gfx); 119 AssetCache* cache = gfx_get_asset_cache(gfx);
@@ -130,7 +130,7 @@ SceneNode* gfx_load_scene(
130 130
131 // Asset not found in the cache. 131 // Asset not found in the cache.
132 // Load it, insert it into the cache, and return it. 132 // Load it, insert it into the cache, and return it.
133 SceneNode* node = gfx_scene_load(gfx, root_node, cmd); 133 SceneNode* node = gfx_scene_load(gfx, parent_node, cmd);
134 if (node) { 134 if (node) {
135 *(Asset*)mempool_alloc(&cache->assets) = (Asset){ 135 *(Asset*)mempool_alloc(&cache->assets) = (Asset){
136 .type = SceneAsset, 136 .type = SceneAsset,