summaryrefslogtreecommitdiffstats
path: root/libdimensionxx/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdimensionxx/camera.cpp')
-rw-r--r--libdimensionxx/camera.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimensionxx/camera.cpp b/libdimensionxx/camera.cpp
index ba2428a..efe0802 100644
--- a/libdimensionxx/camera.cpp
+++ b/libdimensionxx/camera.cpp
@@ -30,7 +30,7 @@ namespace Dimension
Line
Camera::ray(const Canvas& canvas, unsigned int x, unsigned int y)
{
- return Line(dmnsn()->ray_fn(dmnsn(), canvas.dmnsn(), x, y));
+ return Line((*dmnsn()->ray_fn)(dmnsn(), canvas.dmnsn(), x, y));
}
// Return the wrapped camera
@@ -74,7 +74,7 @@ namespace Dimension
bool
Camera::unique() const
{
- return m_camera.unique();
+ return m_camera && m_camera.unique();
}
// Set the wrapped dmnsn_camera*