[PyOpenGL-Users] setting OpenGL.ERROR_CHECKING to False has strange consequence on function loading
Brought to you by:
mcfletch
From: rndblnch <rnd...@gm...> - 2014-02-18 20:44:39
|
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 |