From d0eb5b0dcb589cfa74e801f19c911ae0f665eaa0 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 19 Feb 2024 17:22:28 -0800 Subject: Address TODO. --- game/src/plugins/texture_view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/src/plugins/texture_view.c') 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) { goto cleanup; } - SceneObject* object = gfx_make_object(); + SceneObject* object = + gfx_make_object(&(ObjectDesc){.num_meshes = 1, .meshes = {mesh}}); if (!object) { goto cleanup; } - gfx_add_object_mesh(object, mesh); if (!(state->scene = gfx_make_scene())) { goto cleanup; -- cgit v1.2.3