summaryrefslogtreecommitdiffstats
path: root/libdimension/camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/camera.c')
-rw-r--r--libdimension/camera.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/camera.c b/libdimension/camera.c
index 13b91f0..0a007ea 100644
--- a/libdimension/camera.c
+++ b/libdimension/camera.c
@@ -31,9 +31,9 @@ dmnsn_camera *
dmnsn_new_camera(void)
{
dmnsn_camera *camera = dmnsn_malloc(sizeof(dmnsn_camera));
- camera->free_fn = NULL;
- camera->trans = dmnsn_identity_matrix();
- camera->refcount = 1;
+ camera->free_fn = NULL;
+ camera->trans = dmnsn_identity_matrix();
+ DMNSN_REFCOUNT_INIT(camera);
return camera;
}