summaryrefslogtreecommitdiffstats
path: root/libdimension/tests/render.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-05-30 23:24:36 -0600
committerTavian Barnes <tavianator@gmail.com>2011-05-30 23:43:03 -0600
commit141732e737eb7e9a1677fc3b5aa9ebcd66de3aca (patch)
tree196dabb31b85b92951e48462a425a58328350319 /libdimension/tests/render.c
parent54585ba35adc6afc46201b746401c5a8a66ab6fa (diff)
downloaddimension-141732e737eb7e9a1677fc3b5aa9ebcd66de3aca.tar.xz
Make lights more generic to support directional lights.
Diffstat (limited to 'libdimension/tests/render.c')
-rw-r--r--libdimension/tests/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index de5b6a4..85742d0 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -88,7 +88,7 @@ dmnsn_new_test_scene(void)
dmnsn_new_vector(-15.0, 20.0, 10.0),
dmnsn_white
);
- dmnsn_array_push(scene->lights, &light);
+ dmnsn_scene_add_light(scene, light);
/* Now make our objects */