summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/gl.c6
-rw-r--r--tests/png.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/gl.c b/tests/gl.c
index 5b291f6..b1839a4 100644
--- a/tests/gl.c
+++ b/tests/gl.c
@@ -40,6 +40,12 @@ main() {
return EXIT_FAILURE;
}
+ if (dmnsn_gl_optimize_canvas(scene->canvas) != 0) {
+ dmnsn_delete_default_scene(scene);
+ fprintf(stderr, "--- Couldn't optimize canvas for GL! ---\n");
+ return EXIT_FAILURE;
+ }
+
dmnsn_array_get(scene->objects, 0, &sphere);
dmnsn_array_get(scene->objects, 1, &cube);
trans = dmnsn_get_perspective_camera_trans(scene->camera);
diff --git a/tests/png.c b/tests/png.c
index 3d46f38..d93b913 100644
--- a/tests/png.c
+++ b/tests/png.c
@@ -47,6 +47,12 @@ main() {
return EXIT_FAILURE;
}
+ if (dmnsn_png_optimize_canvas(canvas) != 0) {
+ dmnsn_delete_canvas(canvas);
+ fprintf(stderr, "--- Couldn't optimize canvas for PNG! ---\n");
+ return EXIT_FAILURE;
+ }
+
for (i = 0; i < x; ++i) {
for (j = 0; j < y; ++j) {
/*