summaryrefslogtreecommitdiffstats
path: root/libdimension/perspective.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/perspective.c')
-rw-r--r--libdimension/perspective.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/perspective.c b/libdimension/perspective.c
index 024934a..df679ae 100644
--- a/libdimension/perspective.c
+++ b/libdimension/perspective.c
@@ -19,6 +19,7 @@
*************************************************************************/
#include "dimension.h"
+#include <errno.h>
/*
* Perspective camera
@@ -41,6 +42,7 @@ dmnsn_new_perspective_camera()
ptr = malloc(sizeof(dmnsn_matrix));
if (!ptr) {
dmnsn_delete_camera(camera);
+ errno = ENOMEM;
return NULL;
}
*ptr = dmnsn_identity_matrix();