setting OpenGL.ERROR_CHECKING to F alse has strange consequence on function loading
rndblnch <[email protected]> Tue, 18 Feb 2014 20:44:05 +0000 (UTC)
| Newsgroups | gmane.comp.python.opengl.user |
|---|---|
| Message-ID | <[email protected]> |
hello again, while moving some code to core profile, i found a strange interaction between the OpenGL.ERROR_CHECKING flag and the function loading mechanism. the following program (MacOSX specific for the glut core profile flag) prints True if error checking is enabled and prints False otherwise. import OpenGL #OpenGL.ERROR_CHECKING = False from OpenGL.GLUT import * def reshape(width, height): pass def display(): glutSwapBuffers() glutInit([]) glutInitDisplayMode(GLUT_RGBA|GLUT_3_2_CORE_PROFILE) glutCreateWindow(b"test") glutReshapeFunc(reshape) glutDisplayFunc(display) from OpenGL.GL import glGenVertexArrays print bool(glGenVertexArrays) i am currently investigating the difference in the code paths taken, but i must admit that i am a bit confused... renaud ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net