From c2b4dcc7660407f687604afe2c03eff0a4ff3a16 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 30 May 2014 17:42:14 -0400 Subject: camera: Use pool. --- libdimension/tests/render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libdimension/tests/render.c') diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c index f5ba685..c89a679 100644 --- a/libdimension/tests/render.c +++ b/libdimension/tests/render.c @@ -42,7 +42,7 @@ dmnsn_test_scene_add_canvas(dmnsn_pool *pool, dmnsn_scene *scene) } static void -dmnsn_test_scene_add_camera(dmnsn_scene *scene) +dmnsn_test_scene_add_camera(dmnsn_pool *pool, dmnsn_scene *scene) { /* Set up the transformation matrix for the perspective camera */ dmnsn_matrix trans = dmnsn_scale_matrix( @@ -64,7 +64,7 @@ dmnsn_test_scene_add_camera(dmnsn_scene *scene) ); /* Create a perspective camera */ - scene->camera = dmnsn_new_perspective_camera(); + scene->camera = dmnsn_new_perspective_camera(pool); scene->camera->trans = trans; } @@ -306,7 +306,7 @@ dmnsn_new_test_scene(dmnsn_pool *pool) dmnsn_scene *scene = dmnsn_new_scene(pool); dmnsn_test_scene_set_defaults(scene); dmnsn_test_scene_add_canvas(pool, scene); - dmnsn_test_scene_add_camera(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_objects(scene); -- cgit v1.2.3