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 d077421..16c4d5c 100644 --- a/gfx/src/asset/asset_cache.c +++ b/gfx/src/asset/asset_cache.c | |||
@@ -237,8 +237,8 @@ const Texture* gfx_load_texture(Gfx* gfx, const LoadTextureCmd* cmd) { | |||
237 | 237 | ||
238 | // Asset not found in the cache. | 238 | // Asset not found in the cache. |
239 | // Load it, insert it into the cache, and return it. | 239 | // Load it, insert it into the cache, and return it. |
240 | RenderBackend* render_backend = gfx_get_render_backend(gfx); | 240 | GfxCore* gfxcore = gfx_get_core(gfx); |
241 | const Texture* texture = gfx_texture_load(render_backend, cmd); | 241 | const Texture* texture = gfx_texture_load(gfxcore, cmd); |
242 | if (texture) { | 242 | if (texture) { |
243 | *(Asset*)mempool_alloc(&cache->assets) = (Asset){ | 243 | *(Asset*)mempool_alloc(&cache->assets) = (Asset){ |
244 | .type = TextureAsset, | 244 | .type = TextureAsset, |