summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/tests/render.c')
-rw-r--r--libdimension/tests/render.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index 0192d35..e68dcc4 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -301,9 +301,9 @@ dmnsn_test_scene_add_objects(dmnsn_scene *scene)
* Test scene
*/
static dmnsn_scene *
-dmnsn_new_test_scene(void)
+dmnsn_new_test_scene(dmnsn_pool *pool)
{
- dmnsn_scene *scene = dmnsn_new_scene();
+ dmnsn_scene *scene = dmnsn_new_scene(pool);
dmnsn_test_scene_set_defaults(scene);
dmnsn_test_scene_add_canvas(scene);
dmnsn_test_scene_add_camera(scene);
@@ -320,7 +320,8 @@ main(void)
dmnsn_die_on_warnings(true);
/* Create the test scene */
- dmnsn_scene *scene = dmnsn_new_test_scene();
+ dmnsn_pool *pool = dmnsn_new_pool();
+ dmnsn_scene *scene = dmnsn_new_test_scene(pool);
/* Optimize the canvas for PNG export */
bool have_png = true;
@@ -422,5 +423,6 @@ main(void)
dmnsn_delete_display(display);
dmnsn_delete_scene(scene);
+ dmnsn_delete_pool(pool);
return EXIT_SUCCESS;
}