To main page | 3dengine.org

Avoid glGetFloatv In PyOpenGL


glGetFloatv in PyOpenGL for getting main openGL matrices can lead to gluProject/unproject failures. Use glGetDoublev instead.
buffer = glGetDouble( GL_PROJECTION_MATRIX )