summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/render.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 18:20:51 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 18:21:04 -0400
commit57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d (patch)
treeb30dea9a9c82a7dcd47494cafcf43230dc05bed9 /libdimension/tests/render.c
parentc2b4dcc7660407f687604afe2c03eff0a4ff3a16 (diff)
downloaddimension-57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d.tar.xz
light: Use pool.
Diffstat (limited to 'libdimension/tests/render.c')
-rw-r--r--libdimension/tests/render.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index c89a679..ebdc557 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -106,9 +106,10 @@ dmnsn_test_scene_add_background(dmnsn_pool *pool, dmnsn_scene *scene)
}
static void
-dmnsn_test_scene_add_lights(dmnsn_scene *scene)
+dmnsn_test_scene_add_lights(dmnsn_pool *pool, dmnsn_scene *scene)
{
dmnsn_light *light = dmnsn_new_point_light(
+ pool,
dmnsn_new_vector(-15.0, 20.0, 10.0),
dmnsn_white
);
@@ -308,7 +309,7 @@ dmnsn_new_test_scene(dmnsn_pool *pool)
dmnsn_test_scene_add_canvas(pool, scene);
dmnsn_test_scene_add_camera(pool, scene);
dmnsn_test_scene_add_background(pool, scene);
- dmnsn_test_scene_add_lights(scene);
+ dmnsn_test_scene_add_lights(pool, scene);
dmnsn_test_scene_add_objects(scene);
return scene;
}