summaryrefslogtreecommitdiffstats
path: root/libdimension/gl.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-26 00:54:20 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-26 00:54:20 +0000
commite9c25fd00ec34e0a7ca421b1ac230db157985f92 (patch)
tree132b185e0e6b7516285b9a084e5a1ee65c166889 /libdimension/gl.c
parent0bb6bfe0b08eb9fc2ba62f64bdb21cb5b592c292 (diff)
downloaddimension-e9c25fd00ec34e0a7ca421b1ac230db157985f92.tar.xz
Don't check if it's too late to add canvas optimizers.
This fixes some errors displayed by concurrency checkers like helgrind and drd.
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;
}