summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/ambient.c2
-rw-r--r--libdimension/diffuse.c2
-rw-r--r--libdimension/gl.c2
-rw-r--r--libdimension/perspective.c2
-rw-r--r--libdimension/phong.c2
-rw-r--r--libdimension/plane.c2
-rw-r--r--libdimension/png.c2
-rw-r--r--libdimension/point_light.c2
-rw-r--r--libdimension/reflective.c2
-rw-r--r--libdimension/solid_pigment.c2
10 files changed, 10 insertions, 10 deletions
diff --git a/libdimension/ambient.c b/libdimension/ambient.c
index 70d776b..7c68b4c 100644
--- a/libdimension/ambient.c
+++ b/libdimension/ambient.c
@@ -46,7 +46,7 @@ dmnsn_new_ambient_finish(dmnsn_color ambient)
finish->ptr = param;
finish->ambient_fn = &dmnsn_ambient_finish_fn;
- finish->free_fn = &free;
+ finish->free_fn = &dmnsn_free;
return finish;
}
diff --git a/libdimension/diffuse.c b/libdimension/diffuse.c
index 112a22e..beafbd8 100644
--- a/libdimension/diffuse.c
+++ b/libdimension/diffuse.c
@@ -50,7 +50,7 @@ dmnsn_new_diffuse_finish(double diffuse)
finish->ptr = param;
finish->diffuse_fn = &dmnsn_diffuse_finish_fn;
- finish->free_fn = &free;
+ finish->free_fn = &dmnsn_free;
return finish;
}
diff --git a/libdimension/gl.c b/libdimension/gl.c
index f8bdd58..b09509e 100644
--- a/libdimension/gl.c
+++ b/libdimension/gl.c
@@ -41,7 +41,7 @@ dmnsn_gl_optimize_canvas(dmnsn_canvas *canvas)
dmnsn_canvas_optimizer optimizer;
optimizer.optimizer_fn = &dmnsn_gl_optimizer_fn;
- optimizer.free_fn = &free;
+ optimizer.free_fn = &dmnsn_free;
/* Allocate a buffer to hold RGB values */
optimizer.ptr = dmnsn_malloc(4*canvas->x*canvas->y*sizeof(GLushort));
diff --git a/libdimension/perspective.c b/libdimension/perspective.c
index 02f6c7c..cc602eb 100644
--- a/libdimension/perspective.c
+++ b/libdimension/perspective.c
@@ -41,7 +41,7 @@ dmnsn_new_perspective_camera()
*ptr = dmnsn_identity_matrix();
camera->ray_fn = &dmnsn_perspective_camera_ray_fn;
- camera->free_fn = &free;
+ camera->free_fn = &dmnsn_free;
camera->ptr = ptr;
return camera;
diff --git a/libdimension/phong.c b/libdimension/phong.c
index 10d8928..f0fb3bb 100644
--- a/libdimension/phong.c
+++ b/libdimension/phong.c
@@ -60,7 +60,7 @@ dmnsn_new_phong_finish(double specular, double exp)
finish->ptr = params;
finish->specular_fn = &dmnsn_phong_specular_fn;
- finish->free_fn = &free;
+ finish->free_fn = &dmnsn_free;
return finish;
}
diff --git a/libdimension/plane.c b/libdimension/plane.c
index ce39561..93d5173 100644
--- a/libdimension/plane.c
+++ b/libdimension/plane.c
@@ -45,7 +45,7 @@ dmnsn_new_plane(dmnsn_vector normal)
plane->intersection_fn = &dmnsn_plane_intersection_fn;
plane->inside_fn = &dmnsn_plane_inside_fn;
- plane->free_fn = &free;
+ plane->free_fn = &dmnsn_free;
plane->bounding_box = dmnsn_infinite_bounding_box();
plane->ptr = param;
return plane;
diff --git a/libdimension/png.c b/libdimension/png.c
index d8b47fe..ec2b980 100644
--- a/libdimension/png.c
+++ b/libdimension/png.c
@@ -44,7 +44,7 @@ dmnsn_png_optimize_canvas(dmnsn_canvas *canvas)
dmnsn_canvas_optimizer optimizer;
optimizer.optimizer_fn = &dmnsn_png_optimizer_fn;
- optimizer.free_fn = &free;
+ optimizer.free_fn = &dmnsn_free;
optimizer.ptr = dmnsn_malloc(4*canvas->x*canvas->y*sizeof(uint16_t));
diff --git a/libdimension/point_light.c b/libdimension/point_light.c
index 8e20610..f12df62 100644
--- a/libdimension/point_light.c
+++ b/libdimension/point_light.c
@@ -41,7 +41,7 @@ dmnsn_new_point_light(dmnsn_vector x0, dmnsn_color color)
light->x0 = x0;
light->light_fn = &dmnsn_point_light_fn;
- light->free_fn = &free;
+ light->free_fn = &dmnsn_free;
light->ptr = ptr;
return light;
diff --git a/libdimension/reflective.c b/libdimension/reflective.c
index 806d2f6..6800ac7 100644
--- a/libdimension/reflective.c
+++ b/libdimension/reflective.c
@@ -58,7 +58,7 @@ dmnsn_new_reflective_finish(dmnsn_color min, dmnsn_color max, double falloff)
finish->ptr = params;
finish->reflection_fn = &dmnsn_reflective_finish_fn;
- finish->free_fn = &free;
+ finish->free_fn = &dmnsn_free;
return finish;
}
diff --git a/libdimension/solid_pigment.c b/libdimension/solid_pigment.c
index 1d9bd39..cc8310a 100644
--- a/libdimension/solid_pigment.c
+++ b/libdimension/solid_pigment.c
@@ -35,7 +35,7 @@ dmnsn_new_solid_pigment(dmnsn_color color)
*solid = color;
pigment->pigment_fn = &dmnsn_solid_pigment_fn;
- pigment->free_fn = &free;
+ pigment->free_fn = &dmnsn_free;
pigment->ptr = solid;
return pigment;