diff options
author | 3gg <3gg@shellblade.net> | 2023-01-07 18:42:48 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-01-07 18:42:48 -0800 |
commit | c84f528325a7edf0f808d081106d3ff6a196cb8a (patch) | |
tree | ef9b5cf52908c730970c08d9e2c384a7680ab9f0 /gltfview | |
parent | 5102cd7ffba18b87050b8ecbaed3ee64ab60c462 (diff) |
Destroy all scene and scene elements upon termination.
Diffstat (limited to 'gltfview')
-rw-r--r-- | gltfview/src/game.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gltfview/src/game.c b/gltfview/src/game.c index 93755e7..612ec67 100644 --- a/gltfview/src/game.c +++ b/gltfview/src/game.c | |||
@@ -218,9 +218,6 @@ bool game_new(Game* game, int argc, const char** argv) { | |||
218 | 218 | ||
219 | cleanup: | 219 | cleanup: |
220 | LOGE("Gfx error: %s", gfx_get_error()); | 220 | LOGE("Gfx error: %s", gfx_get_error()); |
221 | if (game->scene) { | ||
222 | gfx_destroy_scene(game->gfx, &game->scene); | ||
223 | } | ||
224 | if (game->gfx) { | 221 | if (game->gfx) { |
225 | gfx_destroy(&game->gfx); | 222 | gfx_destroy(&game->gfx); |
226 | } | 223 | } |