From c78954d80d27c2fac7fe24e3c4e7766408706c48 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 17 Feb 2024 13:16:11 -0800 Subject: Asset cache returns const Texture. --- game/src/plugins/texture_view.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'game/src/plugins/texture_view.c') diff --git a/game/src/plugins/texture_view.c b/game/src/plugins/texture_view.c index fda62db..b624f46 100644 --- a/game/src/plugins/texture_view.c +++ b/game/src/plugins/texture_view.c @@ -35,13 +35,13 @@ bool init(Game* game, State** pp_state) { RenderBackend* render_backend = gfx_get_render_backend(game->gfx); - Texture* texture = gfx_load_texture( - render_backend, &(LoadTextureCmd){ - .origin = TextureFromFile, - .type = LoadTexture, - .filtering = LinearFiltering, - .mipmaps = false, - .data.texture.filepath = mstring_make(texture_file)}); + const Texture* texture = gfx_load_texture( + game->gfx, &(LoadTextureCmd){ + .origin = AssetFromFile, + .type = LoadTexture, + .filtering = LinearFiltering, + .mipmaps = false, + .data.texture.filepath = mstring_make(texture_file)}); if (!texture) { goto cleanup; } -- cgit v1.2.3