summaryrefslogtreecommitdiffstats
path: root/tests/libdimension/png.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libdimension/png.c')
-rw-r--r--tests/libdimension/png.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/libdimension/png.c b/tests/libdimension/png.c
index f0878dc..2073310 100644
--- a/tests/libdimension/png.c
+++ b/tests/libdimension/png.c
@@ -36,10 +36,6 @@ main() {
/* Allocate our default scene */
scene = dmnsn_new_default_scene();
- if (!scene) {
- fprintf(stderr, "--- Allocation of default scene failed! ---\n");
- return EXIT_FAILURE;
- }
/* Optimize the canvas for PNG export */
if (dmnsn_png_optimize_canvas(scene->canvas) != 0) {
@@ -51,11 +47,7 @@ main() {
/* Render scene */
printf("Rendering scene\n");
- if (dmnsn_raytrace_scene(scene) != 0) {
- dmnsn_delete_scene(scene);
- fprintf(stderr, "--- Raytracing failed! ---\n");
- return EXIT_FAILURE;
- }
+ dmnsn_raytrace_scene(scene);
/* Write the image to PNG */