summaryrefslogtreecommitdiff
path: root/game/src/plugins/viewer.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/viewer.c
parent7b756cc336f076fe95deb59847492b4127f82132 (diff)
Asset cache returns const Texture.
Diffstat (limited to 'game/src/plugins/viewer.c')
-rw-r--r--game/src/plugins/viewer.c4
1 files changed, 2 insertions, 2 deletions
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.
33static Texture* load_environment_map(Gfx* gfx) { 33static 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 }