molehill.c compiles and renders fine
http://www.opengl.org/resources/code/samples/mjktips/grid/molehill.c
however, upon running molehill.py
/usr/local/lib/python2.6/dist-packages/PyOpenGL-Demo/GLUT/molehill.py
i get the following error, and the window does not display
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 295, in 'calling callback function'
File "molehill.py", line 46, in display
glCallList(THE_LIST)
File "/usr/lib/pymodules/python2.6/OpenGL/error.py", line 208, in glCheckError
baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
err = 1282,
description = 'invalid operation',
baseOperation = glCallList,
cArguments = (1L,)
)
similar code that uses display lists with nurbs curves DOES work, somehow.
system info:
ubuntu maverick, python 2.6.6-2ubuntu2
python-opengl 3.0.1~b2-1
libglut3 3.7-25
libgl1-mesa-* 7.9~git20100924-0ubuntu2
freeglut3 2.6.0-0ubuntu2
OpenGL renderer string: Mesa DRI Intel(R) 945GME GEM 20100330 DEVELOPMENT x86/MMX/SSE2
more glxinfo: http://pastie.org/2109437
arg, sourceforge won't let me log in.
fennfoot at gee mail.com
I can confirm this bug running on Fedora.
The stack trace is:
; python molehill.py
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x97341d8
OpenGL Warning: Retry with 0xd4 returned 1 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x97341d8
OpenGL Warning: Retry with 0xd4 returned 1 visuals
Traceback (most recent call last):
File "molehill.py", line 184, in <module>
main()
File "molehill.py", line 173, in main
glEndList()
File "errorchecker.pyx", line 50, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:854)
OpenGL.error.GLError: GLError(
err = 1280,
description = 'invalid enumerant',
baseOperation = glEndList,
cArguments = ()
)