summaryrefslogtreecommitdiff
path: root/game/src
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-02-19 17:22:28 -0800
committer3gg <3gg@shellblade.net>2024-02-19 17:22:28 -0800
commitd0eb5b0dcb589cfa74e801f19c911ae0f665eaa0 (patch)
tree9e38b6c29640a953beb9dc509d96cdce38d45d74 /game/src
parent0192616bc757232c354932d2e62df5aa37c3e9ce (diff)
Address TODO.
Diffstat (limited to 'game/src')
-rw-r--r--game/src/plugins/texture_view.c4
-rw-r--r--game/src/plugins/viewer.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/game/src/plugins/texture_view.c b/game/src/plugins/texture_view.c
index b624f46..52dff57 100644
--- a/game/src/plugins/texture_view.c
+++ b/game/src/plugins/texture_view.c
@@ -73,11 +73,11 @@ bool init(Game* game, State** pp_state) {
73 goto cleanup; 73 goto cleanup;
74 } 74 }
75 75
76 SceneObject* object = gfx_make_object(); 76 SceneObject* object =
77 gfx_make_object(&(ObjectDesc){.num_meshes = 1, .meshes = {mesh}});
77 if (!object) { 78 if (!object) {
78 goto cleanup; 79 goto cleanup;
79 } 80 }
80 gfx_add_object_mesh(object, mesh);
81 81
82 if (!(state->scene = gfx_make_scene())) { 82 if (!(state->scene = gfx_make_scene())) {
83 goto cleanup; 83 goto cleanup;
diff --git a/game/src/plugins/viewer.c b/game/src/plugins/viewer.c
index 88821af..4f4ef03 100644
--- a/game/src/plugins/viewer.c
+++ b/game/src/plugins/viewer.c
@@ -195,7 +195,7 @@ static void render_bounding_boxes_rec(ImmRenderer* imm, const SceneNode* node) {
195 // pose). 195 // pose).
196 const mat4 model = gfx_get_node_global_transform(node); 196 const mat4 model = gfx_get_node_global_transform(node);
197 const SceneObject* obj = gfx_get_node_object(node); 197 const SceneObject* obj = gfx_get_node_object(node);
198 const aabb3 box = gfx_calc_object_aabb(obj); 198 const aabb3 box = gfx_get_object_aabb(obj);
199 gfx_imm_set_model_matrix(imm, &model); 199 gfx_imm_set_model_matrix(imm, &model);
200 gfx_imm_draw_aabb3(imm, box); 200 gfx_imm_draw_aabb3(imm, box);
201 } 201 }