Comment 15 for bug 289925

Revision history for this message
shaman.sir (shaman-sir) wrote :

Yes, making the code look like this, completely resolves this segmentation fault problem:

        GLUT.glutInit(sys.argv)
        GLUT.glutCreateWindow('foobar') # required to be a line before glutInitDisplay
        GLUT.glutInitDisplayMode(GLUT.GLUT_RGBA | GLUT.GLUT_DOUBLE)

(thanks to: http://henryestaescrevendo.blogspot.com/2009/03/pyopengl-segmentation-fault.html and a ~gibbsrc comment above)

Sorry for the big number of comments