summaryrefslogtreecommitdiff
path: root/src/glview.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-01-29 18:03:23 (GMT)
committerMarius Kintel <marius@kintel.net>2012-01-29 18:03:23 (GMT)
commita15c89922e347f6b92e7ddc20e6d5fcd35b207ce (patch)
treebea7a380291bf5758b0b8dc106d917578a6b9a41 /src/glview.cc
parente541df8bb50df403afded7dfe73d9df5b542d2e4 (diff)
parentfcd0629a12123b15cfce6ee3d444ef938e556ad6 (diff)
Merge branch 'master' of github.com:openscad/openscad
Diffstat (limited to 'src/glview.cc')
-rw-r--r--src/glview.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glview.cc b/src/glview.cc
index 499e555..0f9ec5b 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -371,6 +371,7 @@ void GLView::setupOrtho(double distance, bool offset)
glOrtho(-w_h_ratio*l, +w_h_ratio*l,
-(1/w_h_ratio)*l, +(1/w_h_ratio)*l,
-FAR_FAR_AWAY, +FAR_FAR_AWAY);
+ gluLookAt(0.0, -viewer_distance, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0);
}
void GLView::paintGL()
@@ -450,8 +451,6 @@ void GLView::paintGL()
setupOrtho(1000,true);
- gluLookAt(0.0, -1000, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0);
-
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glRotated(object_rot_x, 1.0, 0.0, 0.0);
contact: Jan Huwald // Impressum