diff options
Diffstat (limited to 'game/src/plugins/texture_view.c')
| -rw-r--r-- | game/src/plugins/texture_view.c | 14 |
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 | } |
