summaryrefslogtreecommitdiff
path: root/src/GLView.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-03 17:41:37 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-03 17:41:37 (GMT)
commitbacaa2b1b916f7672e2b971337232caef9cb22a2 (patch)
tree600980169762db7de33d29767fc0b7470000aeec /src/GLView.cc
parent2b2dc7a078e92193f0d27d901d3a1b4af9f5a1d9 (diff)
fix bugs in testing
Diffstat (limited to 'src/GLView.cc')
-rw-r--r--src/GLView.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/GLView.cc b/src/GLView.cc
index 77c3375..6598ed5 100644
--- a/src/GLView.cc
+++ b/src/GLView.cc
@@ -94,9 +94,11 @@ void GLView::setCamera( Camera &cam )
void GLView::paintGL()
{
- if (cam.type == Camera::NONE) return;
- else if (cam.type == Camera::GIMBAL) gimbalCamPaintGL();
+ if (cam.type == Camera::GIMBAL) gimbalCamPaintGL();
else if (cam.type == Camera::VECTOR) vectorCamPaintGL();
+ else if (cam.type == Camera::NONE) {
+ fprintf(stderr,"paintGL with null camera\n");
+ }
}
#ifdef ENABLE_OPENCSG
contact: Jan Huwald // Impressum