#216 regression: multitexturing broken in 3.0.0

GL (74)

I've been trying to track down a regression in multitexturing that happens on Windows with PyOpenGL3. I get the same issue with Python2.5 and Python2.6, and it goes away when I test on Python2.5 with PyOpenGL I don't get this error on Linux.

Running the old NeHe demo "lesson6-multi.py" I found in a local copy of PyOpenGL- (in PyOpenGL-, I get this traceback:

Z:\test>c:\python25\python lesson6-multi.py
Hit ESC key to quit.
Traceback (most recent call last):
File "c:\python25\lib\site-packages\OpenGL\GLUT\special.py", line 113, in safe
return function( *args, **named )
File "lesson6-multi.py", line 189, in DrawGLScene
glEnd(); # Done Drawing The Cube
File "c:\python25\lib\site-packages\OpenGL\lazywrapper.py", line 9, in __call_
return wrapper( baseFunction, *args, **named )
File "c:\python25\lib\site-packages\OpenGL\GL\exceptional.py", line 57, in glE
return baseFunction( )
File "c:\python25\lib\site-packages\OpenGL\error.py", line 194, in glCheckErro
baseOperation = baseOperation,
GLError: GLError(
err = 1282,
description = 'invalid operation',
baseOperation = glEnd,
cArguments = ()
GLUT Idle callback <function DrawGLScene at 0x00D47830> with (),{} failed: retur
ning None GLError(
err = 1282,
description = 'invalid operation',
baseOperation = glEnd,
cArguments = ()


  • Mike C. Fletcher

    • status: open --> closed-works-for-me
  • Mike C. Fletcher

    Have just tested with the Demo/NeHe/lesson6-multi.py from PyOpenGL with PyOpenGL 3.0.1 (about to be released). Works as expected. We also have a PyOpenGL-Demo package which includes the updated version of the demo, which works fine. We have lots of other scripts that use multi-texturing, both with the legacy and shader APIs.

  • Mike C. Fletcher

    • status: closed-works-for-me --> open
  • Mike C. Fletcher

    Urgh, *Windows*, sorry. Guess I need to get over to windows to test this.

  • Andrew Straw

    Andrew Straw - 2010-02-25

    Thanks for looking into this. I tried, but I got lost in the code. This is important for the current and past incarnations of the Vision Egg library, which is useful for vision research experiments. In the future, the VE will move to shaders, but multi-texturing worked fine for years until PyOpenGL 3. I am happy to test.

  • Jérémy Quentin

    Is there anything new about this issue?


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks