summaryrefslogtreecommitdiffstats
path: root/libdimension/point_light.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 18:20:51 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 18:21:04 -0400
commit57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d (patch)
treeb30dea9a9c82a7dcd47494cafcf43230dc05bed9 /libdimension/point_light.c
parentc2b4dcc7660407f687604afe2c03eff0a4ff3a16 (diff)
downloaddimension-57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d.tar.xz
light: Use pool.
Diffstat (limited to 'libdimension/point_light.c')
-rw-r--r--libdimension/point_light.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/point_light.c b/libdimension/point_light.c
index 2f994b2..62857d8 100644
--- a/libdimension/point_light.c
+++ b/libdimension/point_light.c
@@ -57,9 +57,9 @@ dmnsn_point_light_shadow_fn(const dmnsn_light *light, double t)
}
dmnsn_light *
-dmnsn_new_point_light(dmnsn_vector x0, dmnsn_color color)
+dmnsn_new_point_light(dmnsn_pool *pool, dmnsn_vector x0, dmnsn_color color)
{
- dmnsn_point_light *point_light = DMNSN_MALLOC(dmnsn_point_light);
+ dmnsn_point_light *point_light = DMNSN_PALLOC(pool, dmnsn_point_light);
point_light->origin = x0;
point_light->color = color;