Comment 12 for bug 408212

Revision history for this message
Davide Aversa (thek3nger) wrote :

Python crash with SIGSEV on my pc too. It happens with all OpenGL/GLUT script. For example:

from OpenGL.GLUT import *
from OpenGL.GL import *

def init():
    glClearColor(0,0,0,0)
    glMatrixMode(GL_PROJECTION)
    glLoadIdentity()
    glOrtho(0,1,0,1,-1,1)

def display():
    glClear(GL_COLOR_BUFFER_BIT)
    glColor3f(1,1,1)
    glBegin(GL_POLYGON)
    glVertex3f(0.25, 0.25, 0)
    glVertex3f(0.75, 0.25, 0)
    glVertex3f(0.75, 0.75, 0)
    glVertex3f(0.25, 0.75, 0)
    glEnd()
    glFlush()

if __name__ == '__main__' :
    glutInit()
    glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB)
    glutInitWindowSize(250, 250)
    glutInitWindowPosition(100, 100)
    glutCreateWindow("Hello World")
    init()
    glutDisplayFunc(display)
    glutMainLoop()