diff options
Diffstat (limited to 'game/src/plugins/texture_view.c')
| -rw-r--r-- | game/src/plugins/texture_view.c | 4 |
1 files changed, 2 insertions, 2 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; |
