diff options
Diffstat (limited to 'game/src/plugins')
-rw-r--r-- | game/src/plugins/texture_view.c | 14 | ||||
-rw-r--r-- | game/src/plugins/viewer.c | 4 |
2 files changed, 9 insertions, 9 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 | } |
diff --git a/game/src/plugins/viewer.c b/game/src/plugins/viewer.c index dd7f451..c58b0e0 100644 --- a/game/src/plugins/viewer.c +++ b/game/src/plugins/viewer.c | |||
@@ -30,7 +30,7 @@ struct State { | |||
30 | }; | 30 | }; |
31 | 31 | ||
32 | /// Load the skyquad texture. | 32 | /// Load the skyquad texture. |
33 | static Texture* load_environment_map(Gfx* gfx) { | 33 | static const Texture* load_environment_map(Gfx* gfx) { |
34 | assert(gfx); | 34 | assert(gfx); |
35 | return gfx_load_texture( | 35 | return gfx_load_texture( |
36 | gfx, &(LoadTextureCmd){ | 36 | gfx, &(LoadTextureCmd){ |
@@ -56,7 +56,7 @@ static SceneNode* load_skyquad(Gfx* gfx, SceneNode* root) { | |||
56 | 56 | ||
57 | RenderBackend* render_backend = gfx_get_render_backend(gfx); | 57 | RenderBackend* render_backend = gfx_get_render_backend(gfx); |
58 | 58 | ||
59 | Texture* environment_map = load_environment_map(gfx); | 59 | const Texture* environment_map = load_environment_map(gfx); |
60 | if (!environment_map) { | 60 | if (!environment_map) { |
61 | return 0; | 61 | return 0; |
62 | } | 62 | } |