Bug 22014 - Bogus GL_INVALID_OPERATION when calling glGetError inside glNewList() - glEndList() block with GL_COMPILE_AND_EXECUTE
Summary: Bogus GL_INVALID_OPERATION when calling glGetError inside glNewList() - glEnd...
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/X11 (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-31 08:39 UTC by Stephen A.
Modified: 2019-09-18 16:56 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Stephen A. 2009-05-31 08:39:48 UTC
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.
Comment 1 Stephen A. 2009-05-31 08:42:51 UTC
This issue does not occur when using GL_COMPILE instead of GL_COMPILE_AND_EXECUTE.
Comment 2 GitLab Migration User 2019-09-18 16:56:10 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/43.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.