summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index 6d17cea..f56236f 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -35,6 +35,8 @@ dmnsn_new_scene()
scene->quality = DMNSN_RENDER_FULL;
scene->reclimit = 5;
scene->nthreads = dmnsn_ncpus();
+ scene->bounding_timer = NULL;
+ scene->render_timer = NULL;
return scene;
}
@@ -44,6 +46,9 @@ void
dmnsn_delete_scene(dmnsn_scene *scene)
{
if (scene) {
+ dmnsn_delete_timer(scene->render_timer);
+ dmnsn_delete_timer(scene->bounding_timer);
+
DMNSN_ARRAY_FOREACH (dmnsn_light **, light, scene->lights) {
dmnsn_delete_light(*light);
}