[Mesa-dev] [Bug 48535] Spurious GL_INVALID_OPERATION error generated by glColor()
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Apr 13 11:46:51 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=48535
--- Comment #7 from Ian Romanick <idr at freedesktop.org> 2012-04-13 11:46:51 PDT ---
I did a little poking at the sample case. It appears that the issue is related
to display lists. Commenting out all of the glNewList and glEndList calls make
the error stop occurring. It also appears that trimming out a bunch of the
glBegin/glEnd blocks within certain glNewList/glEndList blocks makes the
problem stop occurring.
My guess is that we're overflowing some buffer inside the display list compiler
code, and bad things happen. One of the side-effects of these bad things is a
glEnd gets dropped.
We could probably make a reasonable piglit test out of this that just does
something like
for ( /* a lot */ ) {
glNewList(1, GL_COMPILE_AND_EXECUTE);
for ( /* a lot */ ) {
glBegin(GL_QUADS);
/* vertex data for one quad */
glEnd();
glGetError();
/* assert that error is GL_NO_ERROR */
}
glEndList();
glGetError();
/* assert that error is GL_NO_ERROR */
}
I probably won't have time to dig into this any more, but I think this
information should help someone else track it down. :)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list