summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/render.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-21 20:27:09 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-21 20:27:09 -0600
commit0f0b704144bddc045657f7ed852b49d5e349b0bd (patch)
treecefc022b10cc4f5675245ea2e77c24c89a6bc30a /libdimension/tests/render.c
parent07d784563af19c162945c60562819269e6fc4994 (diff)
downloaddimension-0f0b704144bddc045657f7ed852b49d5e349b0bd.tar.xz
Add refcounts to cameras.
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 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;