summaryrefslogtreecommitdiffstats
path: root/libdimension/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 15:07:35 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 15:07:35 -0400
commit77f880207d4fc37f82299d78d04be13623d9da0a (patch)
tree1da61bc0b17e803a14ef42b068b089a262302f53 /libdimension/tests
parent2b546944a1f0c5646936f2ab047345769e3a2471 (diff)
downloaddimension-77f880207d4fc37f82299d78d04be13623d9da0a.tar.xz
scene: Use pool.
Diffstat (limited to 'libdimension/tests')
-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;
}