summaryrefslogtreecommitdiffstats
path: root/libdimension/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/tests')
-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 a84ba63..a79c85c 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -62,8 +62,9 @@ dmnsn_new_test_scene(void)
);
/* Create a perspective camera */
- scene->camera = dmnsn_new_perspective_camera();
- scene->camera->trans = trans;
+ dmnsn_camera *camera = dmnsn_new_perspective_camera();
+ camera->trans = trans;
+ dmnsn_scene_set_camera(scene, camera);
/* Background color */
scene->background = dmnsn_clear;