summaryrefslogtreecommitdiffstats
path: root/libdimension/tests
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/tests')
-rw-r--r--libdimension/tests/gl.c2
-rw-r--r--libdimension/tests/png.c2
-rw-r--r--libdimension/tests/render.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/libdimension/tests/gl.c b/libdimension/tests/gl.c
index 262fecf..1546d6c 100644
--- a/libdimension/tests/gl.c
+++ b/libdimension/tests/gl.c
@@ -56,7 +56,7 @@ main(void)
*/
// Optimize the canvas for GL drawing
- if (dmnsn_gl_optimize_canvas(canvas) != 0) {
+ if (dmnsn_gl_optimize_canvas(pool, canvas) != 0) {
dmnsn_delete_pool(pool);
fprintf(stderr, "--- Couldn't optimize canvas for GL! ---\n");
return EXIT_FAILURE;
diff --git a/libdimension/tests/png.c b/libdimension/tests/png.c
index 1feff72..7311e43 100644
--- a/libdimension/tests/png.c
+++ b/libdimension/tests/png.c
@@ -34,7 +34,7 @@ main(void)
dmnsn_canvas *canvas = dmnsn_new_canvas(pool, 768, 480);
// Optimize the canvas for PNG export
- if (dmnsn_png_optimize_canvas(canvas) != 0) {
+ if (dmnsn_png_optimize_canvas(pool, canvas) != 0) {
fprintf(stderr, "--- Couldn't optimize canvas for PNG! ---\n");
ret = EXIT_FAILURE;
goto exit;
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index 866df2d..56a80d3 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -316,7 +316,7 @@ main(void)
// Optimize the canvas for PNG export
bool have_png = true;
errno = 0;
- if (dmnsn_png_optimize_canvas(scene->canvas) != 0) {
+ if (dmnsn_png_optimize_canvas(pool, scene->canvas) != 0) {
if (errno == ENOSYS) {
have_png = false;
} else {
@@ -328,7 +328,7 @@ main(void)
// Optimize the canvas for GL drawing
bool have_gl = true;
errno = 0;
- if (dmnsn_gl_optimize_canvas(scene->canvas) != 0) {
+ if (dmnsn_gl_optimize_canvas(pool, scene->canvas) != 0) {
if (errno == ENOSYS) {
have_gl = false;
} else {