summaryrefslogtreecommitdiffstats
path: root/tests/raytrace.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-08 17:18:55 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-08 17:18:55 +0000
commitfaf9740f37e68cae0822bb196a6c3a163a7e364e (patch)
treeed282c29a24af3e768188cbfed1ae09eeb72bd20 /tests/raytrace.c
parent06516d57e016ba31a96b49a5c5f42e0fcb03ff26 (diff)
downloaddimension-faf9740f37e68cae0822bb196a6c3a163a7e364e.tar.xz
Fix tests.
Diffstat (limited to 'tests/raytrace.c')
-rw-r--r--tests/raytrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/raytrace.c b/tests/raytrace.c
index 5dab164..fe98bfc 100644
--- a/tests/raytrace.c
+++ b/tests/raytrace.c
@@ -38,8 +38,8 @@ main() {
}
/* Optimize the canvas for PNG export */
- if (dmnsn_png_optimize_canvas(canvas) != 0) {
- dmnsn_delete_canvas(canvas);
+ if (dmnsn_png_optimize_canvas(scene->canvas) != 0) {
+ dmnsn_delete_default_scene(scene);
fprintf(stderr, "--- Couldn't optimize canvas for PNG! ---\n");
return EXIT_FAILURE;
}