summaryrefslogtreecommitdiffstats
path: root/libdimension/scene.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r--libdimension/scene.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index e1497cb..c3aac1f 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -35,8 +35,6 @@ dmnsn_scene_cleanup(void *ptr)
dmnsn_delete_object(*object);
}
dmnsn_delete_array(scene->objects);
-
- dmnsn_delete_texture(scene->default_texture);
}
/* Allocate an empty scene */
@@ -46,7 +44,7 @@ dmnsn_new_scene(dmnsn_pool *pool)
dmnsn_scene *scene = DMNSN_PALLOC_TIDY(pool, dmnsn_scene, dmnsn_scene_cleanup);
scene->background = NULL;
- scene->default_texture = dmnsn_new_texture();
+ scene->default_texture = dmnsn_new_texture(pool);
scene->default_interior = dmnsn_new_interior(pool);
scene->canvas = NULL;
scene->region_x = 0;