diff options
Diffstat (limited to 'gfx/src/asset/asset_cache.c')
-rw-r--r-- | gfx/src/asset/asset_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/src/asset/asset_cache.c b/gfx/src/asset/asset_cache.c index 037f62b..0320954 100644 --- a/gfx/src/asset/asset_cache.c +++ b/gfx/src/asset/asset_cache.c | |||
@@ -139,7 +139,7 @@ Model* gfx_load_model(Gfx* gfx, const LoadModelCmd* cmd) { | |||
139 | return model; | 139 | return model; |
140 | } | 140 | } |
141 | 141 | ||
142 | Texture* gfx_load_texture(Gfx* gfx, const LoadTextureCmd* cmd) { | 142 | const Texture* gfx_load_texture(Gfx* gfx, const LoadTextureCmd* cmd) { |
143 | assert(gfx); | 143 | assert(gfx); |
144 | assert(cmd); | 144 | assert(cmd); |
145 | 145 | ||
@@ -155,7 +155,7 @@ Texture* gfx_load_texture(Gfx* gfx, const LoadTextureCmd* cmd) { | |||
155 | // Asset not found in the cache. | 155 | // Asset not found in the cache. |
156 | // Load it, insert it into the cache, and return it. | 156 | // Load it, insert it into the cache, and return it. |
157 | RenderBackend* render_backend = gfx_get_render_backend(gfx); | 157 | RenderBackend* render_backend = gfx_get_render_backend(gfx); |
158 | Texture* texture = gfx_texture_load(render_backend, cmd); | 158 | const Texture* texture = gfx_texture_load(render_backend, cmd); |
159 | if (texture) { | 159 | if (texture) { |
160 | *(Asset*)mempool_alloc(&cache->assets) = (Asset){ | 160 | *(Asset*)mempool_alloc(&cache->assets) = (Asset){ |
161 | .type = TextureAsset, | 161 | .type = TextureAsset, |