diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-21 20:27:09 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-21 20:27:09 -0600 |
commit | 0f0b704144bddc045657f7ed852b49d5e349b0bd (patch) | |
tree | cefc022b10cc4f5675245ea2e77c24c89a6bc30a /libdimension/tests | |
parent | 07d784563af19c162945c60562819269e6fc4994 (diff) | |
download | dimension-0f0b704144bddc045657f7ed852b49d5e349b0bd.tar.xz |
Add refcounts to cameras.
Diffstat (limited to 'libdimension/tests')
-rw-r--r-- | libdimension/tests/render.c | 5 |
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; |