Commit 55da08b8 authored by Guillaume Seguin's avatar Guillaume Seguin

Correctly switch back to MODELVIEW after loading PROJECTION

parent f3e6d0e1
......@@ -119,6 +119,7 @@ class wxGLPanel(wx.Panel):
glOrtho(-width / 2, width / 2, -height / 2, height / 2, 0.1, 3 * self.dist)
else:
gluPerspective(60., float(width) / height, 10.0, 3 * self.dist)
glMatrixMode(GL_MODELVIEW)
if not self.mview_initialized:
self.reset_mview(0.9)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment