diff options
author | 3gg <3gg@shellblade.net> | 2024-02-19 18:11:42 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2024-02-19 18:11:42 -0800 |
commit | b5008978a7b5b23358c2a6980b5a1eb2d33bf08d (patch) | |
tree | c1de41b621a0ab45d4ee29092355c72d0e3f5440 | |
parent | d0eb5b0dcb589cfa74e801f19c911ae0f665eaa0 (diff) |
Update to latest gfx.
-rw-r--r-- | gfx-iso/app/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx-iso/app/main.c b/gfx-iso/app/main.c index ff8a266..050a42f 100644 --- a/gfx-iso/app/main.c +++ b/gfx-iso/app/main.c | |||
@@ -99,11 +99,11 @@ static bool init(const GfxAppDesc* desc, void** app_state) { | |||
99 | goto cleanup; | 99 | goto cleanup; |
100 | } | 100 | } |
101 | 101 | ||
102 | SceneObject* object = gfx_make_object(); | 102 | SceneObject* object = |
103 | gfx_make_object(&(ObjectDesc){.num_meshes = 1, .meshes = {mesh}}); | ||
103 | if (!object) { | 104 | if (!object) { |
104 | goto cleanup; | 105 | goto cleanup; |
105 | } | 106 | } |
106 | gfx_add_object_mesh(object, mesh); | ||
107 | 107 | ||
108 | state->scene = gfx_make_scene(); | 108 | state->scene = gfx_make_scene(); |
109 | SceneNode* node = gfx_make_object_node(object); | 109 | SceneNode* node = gfx_make_object_node(object); |