summaryrefslogtreecommitdiffstats
path: root/libdimension/raytrace.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-16 01:16:33 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-16 01:16:33 +0000
commit6b4dc860466ce4794b346533162291046a6ee96c (patch)
tree2ce3f61711ea6a5688462f605a4e5913e1cb7a4e /libdimension/raytrace.c
parentc3619e541564d5133a3ccdaeb79588d37d46a3db (diff)
downloaddimension-6b4dc860466ce4794b346533162291046a6ee96c.tar.xz
New C++ wrapper for dmnsn_texture*.
Diffstat (limited to 'libdimension/raytrace.c')
-rw-r--r--libdimension/raytrace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 75e857c..10f400d 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -248,6 +248,9 @@ dmnsn_raytrace_shoot(dmnsn_scene *scene, dmnsn_color color,
if (intersection) {
color = dmnsn_color_from_XYZ(dmnsn_whitepoint);
}
+
+ /* Delete the intersection */
+ dmnsn_delete_intersection(intersection);
}
return color;