GLError within GlEndList() within classic greas.py example

Attempting to run this gl gear code on a virtual machine results in the following stack trace:

OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x92e18b0
OpenGL Warning: Retry with 0xd4 returned 1 visuals
OpenGL Warning: XGetVisualInfo returned 0 visuals for 0x92e18b0
OpenGL Warning: Retry with 0xd4 returned 1 visuals
Traceback (most recent call last):
  File "gears.py", line 264, in <module>
    init()
  File "gears.py", line 234, in init
    glEndList()
  File "errorchecker.pyx", line 50, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src/errorchecker.c:1050)
OpenGL.error.GLError: GLError(
    err = 1280,
    description = 'invalid enumerant',
    baseOperation = glEndList,
    cArguments = ()
)

But the same code works fine on my desktop -- both machines run the same version of pyOpenGL and all packages install should be the same. However, the underlying OS is Fedora 12 on the virtual machine and Fedora 16 on the desktop.

What could cause this?

As requested in answer:

$ glxinfo | grep OpenGL
OpenGL vendor string: Humper
OpenGL renderer string: Chromium
OpenGL version string: 2.1 Chromium 1.9
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
OpenGL extensions:

Upvotes: 1

Views: 336

Answers (1)

Ani
Ani

Reputation: 10896

It seems to me you're running a version of OpenGL less than 1.2. Check the version of OpenGL you're running.

Upvotes: 1

Related Questions