diff options
Diffstat (limited to 'gfx/src/asset/asset_cache.c')
-rw-r--r-- | gfx/src/asset/asset_cache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gfx/src/asset/asset_cache.c b/gfx/src/asset/asset_cache.c index fd9f1f8..0075d41 100644 --- a/gfx/src/asset/asset_cache.c +++ b/gfx/src/asset/asset_cache.c | |||
@@ -1,11 +1,14 @@ | |||
1 | #include "asset_cache.h" | 1 | #include "asset_cache.h" |
2 | 2 | ||
3 | #include "scene.h" | ||
4 | #include "texture.h" | ||
3 | #include <gfx/asset.h> | 5 | #include <gfx/asset.h> |
4 | #include <gfx/gfx.h> | 6 | #include <gfx/gfx.h> |
5 | #include <gfx/util/scene.h> | 7 | #include <gfx/scene/node.h> |
6 | #include <gfx/util/texture.h> | ||
7 | #include <gfx_assert.h> | 8 | #include <gfx_assert.h> |
8 | 9 | ||
10 | #include "scene/node_impl.h" | ||
11 | |||
9 | #include <cstring.h> | 12 | #include <cstring.h> |
10 | #include <log/log.h> | 13 | #include <log/log.h> |
11 | 14 | ||
@@ -119,8 +122,6 @@ SceneNode* gfx_load_scene( | |||
119 | AssetCache* cache = gfx_get_asset_cache(gfx); | 122 | AssetCache* cache = gfx_get_asset_cache(gfx); |
120 | 123 | ||
121 | // First search for the asset in the cache. | 124 | // First search for the asset in the cache. |
122 | // TODO: Animated models are currently mutated in place, so sharing them is | ||
123 | // not really valid. | ||
124 | const uint64_t hash = calc_scene_hash(cmd); | 125 | const uint64_t hash = calc_scene_hash(cmd); |
125 | Asset* asset = lookup_cache(cache, hash); | 126 | Asset* asset = lookup_cache(cache, hash); |
126 | if (asset) { | 127 | if (asset) { |