File: test_crash_on_glutinit.py

package info (click to toggle)
pyopengl 3.0.1~b2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 6,148 kB
  • ctags: 25,165
  • sloc: python: 26,391; sh: 4; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 243 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9

if __name__ == "__main__":
    from OpenGL.GLUT import *
    from OpenGL.GL import *
    glutInit( ' ' )
    glutInitDisplayMode( GLUT_SINGLE )
    window = glutCreateWindow("hello")
    glutDisplayFunc( lambda *args: 1 )
    #glutMainLoop()