summaryrefslogtreecommitdiff
path: root/game/src/plugins/texture_view.c
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-02-17 13:16:11 -0800
committer3gg <3gg@shellblade.net>2024-02-17 13:16:11 -0800
commitc78954d80d27c2fac7fe24e3c4e7766408706c48 (patch)
tree8a54daadd6e93ddd57e4075995a70b32926d4954 /game/src/plugins/texture_view.c
parent7b756cc336f076fe95deb59847492b4127f82132 (diff)
Asset cache returns const Texture.
Diffstat (limited to 'game/src/plugins/texture_view.c')
-rw-r--r--game/src/plugins/texture_view.c14
1 files changed, 7 insertions, 7 deletions
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) {
35 35
36 RenderBackend* render_backend = gfx_get_render_backend(game->gfx); 36 RenderBackend* render_backend = gfx_get_render_backend(game->gfx);
37 37
38 Texture* texture = gfx_load_texture( 38 const Texture* texture = gfx_load_texture(
39 render_backend, &(LoadTextureCmd){ 39 game->gfx, &(LoadTextureCmd){
40 .origin = TextureFromFile, 40 .origin = AssetFromFile,
41 .type = LoadTexture, 41 .type = LoadTexture,
42 .filtering = LinearFiltering, 42 .filtering = LinearFiltering,
43 .mipmaps = false, 43 .mipmaps = false,
44 .data.texture.filepath = mstring_make(texture_file)}); 44 .data.texture.filepath = mstring_make(texture_file)});
45 if (!texture) { 45 if (!texture) {
46 goto cleanup; 46 goto cleanup;
47 } 47 }