summaryrefslogtreecommitdiffstats
path: root/libdimension/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/gl.c')
-rw-r--r--libdimension/gl.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libdimension/gl.c b/libdimension/gl.c
index 31e0127..1bbf749 100644
--- a/libdimension/gl.c
+++ b/libdimension/gl.c
@@ -53,12 +53,7 @@ dmnsn_gl_optimize_canvas(dmnsn_canvas *canvas)
}
/* Set a new optimizer */
- if (dmnsn_optimize_canvas(canvas, optimizer) != 0) {
- /* Set failed; dmnsn_set_pixel() has probably been called already */
- free(optimizer.ptr);
- return 1;
- }
-
+ dmnsn_optimize_canvas(canvas, optimizer);
return 0;
}