summaryrefslogtreecommitdiffstats
path: root/libdimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-20 21:31:28 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-20 21:31:28 +0000
commit6e43b81bdbd2b2dc87b52219df0699b75e8a6c27 (patch)
treef9dfc96900859f58a46b90225911c88113cde19f /libdimension
parent95895823f75108cbfed2697498e4e097f493b236 (diff)
downloaddimension-6e43b81bdbd2b2dc87b52219df0699b75e8a6c27.tar.xz
More memory handling improvements.
Diffstat (limited to 'libdimension')
-rw-r--r--libdimension/scene.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c
index 59a1eb9..3629c8e 100644
--- a/libdimension/scene.c
+++ b/libdimension/scene.c
@@ -27,6 +27,8 @@ dmnsn_new_scene()
{
dmnsn_scene *scene = malloc(sizeof(dmnsn_scene));
if (scene) {
+ scene->camera = NULL;
+ scene->canvas = NULL;
scene->default_texture = NULL;
scene->objects = dmnsn_new_array(sizeof(dmnsn_object*));
scene->quality = DMNSN_RENDER_FULL;