Browse Source

Python 3d_viewer: init glut manually for windows ( https://github.com/assimp/assimp/issues/622 ).

Kim Kulling 10 years ago
parent
commit
e5b61e5553
1 changed files with 1 additions and 1 deletions
  1. 1 1
      port/PyAssimp/scripts/3d_viewer.py

+ 1 - 1
port/PyAssimp/scripts/3d_viewer.py

@@ -68,7 +68,7 @@ class PyAssimp3DViewer:
         pygame.init()
         pygame.init()
         pygame.display.set_caption(self.base_name)
         pygame.display.set_caption(self.base_name)
         pygame.display.set_mode((w,h), pygame.OPENGL | pygame.DOUBLEBUF)
         pygame.display.set_mode((w,h), pygame.OPENGL | pygame.DOUBLEBUF)
-
+        glutInit()
         self.prepare_shaders()
         self.prepare_shaders()
 
 
         self.cameras = [DefaultCamera(w,h,fov)]
         self.cameras = [DefaultCamera(w,h,fov)]