summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-14 01:20:13 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-14 01:20:13 (GMT)
commit26c9514b70cee4d49ea5441c50dabbda2631e9fa (patch)
treeb58da23c3315302d68a5d98f1b8ca69c964b2f9c /src
parent9267b15bd715cf9a2b709a4e87a8e9f3a395a0f5 (diff)
Fixed recently introduced problem with zoom not working if axes are turned off. Reported by nop head.
Diffstat (limited to 'src')
-rw-r--r--src/glview.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glview.cc b/src/glview.cc
index 65432c8..3d26fa5 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -377,8 +377,8 @@ void GLView::paintGL()
{
glEnable(GL_LIGHTING);
- if (orthomode)
- setupOrtho(viewer_distance);
+ if (orthomode) setupOrtho(viewer_distance);
+ else setupPerspective();
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
contact: Jan Huwald // Impressum