File: check_glutinit_single.py

package info (click to toggle)
pyopengl 3.1.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,024 kB
  • sloc: python: 108,056; sh: 13; makefile: 8
file content (12 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *

glutInit([''])
glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB)
print('OK')
try:
    if fgDeinitialize:
        fgDeinitialize(False)
except NameError as err:
    pass  # Older PyOpenGL, you may see a seg-fault here...