Bogus GL_INVALID_OPERATION when calling glGetError inside glNewList() - glEndList() block with GL_COMPILE_AND_EXECUTE
Submitted by Stephen A.
Assigned to mes..@..op.org
Description
I can reproduce this bug with Mesa 7.4 indirect (ships with Ubuntu 9.04 x86). It does not occur on Nvidia or Ati binary drivers.
This is similar to a Mesa bug that was fixed a few years ago: https://bugs.freedesktop.org/show_bug.cgi?id=7984
According to the specs, the following code should not generate an InvalidOperation error:
int list = glGenLists(1); glGetError();
glNewList(list, GL_COMPILE_AND_EXECUTE); glGetError();
glBegin(GL_TRIANGLES); glVertex3f(0, 0, 0); glVertex3f(1, 0, 0); glVertex3f(1, 1, 0); glEnd(); glGetError();
glEndList(); glGetError();
However, the very last call to glGetError() reports GL_INVALID_OPERATION.