summaryrefslogtreecommitdiffstats
path: root/tests/raytracexx.cpp
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/raytracexx.cpp
parent06516d57e016ba31a96b49a5c5f42e0fcb03ff26 (diff)
downloaddimension-faf9740f37e68cae0822bb196a6c3a163a7e364e.tar.xz
Fix tests.
Diffstat (limited to 'tests/raytracexx.cpp')
-rw-r--r--tests/raytracexx.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/raytracexx.cpp b/tests/raytracexx.cpp
index 03de066..d681f58 100644
--- a/tests/raytracexx.cpp
+++ b/tests/raytracexx.cpp
@@ -28,7 +28,10 @@ main() {
// Set the resilience low for tests
resilience(SEVERITY_LOW);
+ // Get the default test scene
Scene scene = Tests::default_scene();
+
+ std::ofstream file("raytracexx.png");
PNG_Writer writer(scene.canvas(), file);
// Render the scene
@@ -39,7 +42,6 @@ main() {
}
// Write the canvas
- std::ofstream file("raytracexx.png");
Progress progress = writer.write_async();
std::cout << "Writing PNG file: " << progress << std::endl;