Created attachment 61421 [details]
code for reproducing the bug
If we draw a GL_LINE_LOOP, we will see an extra line on it. See attached "wrong.png".
Ubuntu 12.04 64-bit
newest MESA code from git
How to reproduce:
compile attached "bug.cpp"
g++ bug.cpp -lglut -lGL
What should be the correct output:
See attached "correct.png"
Created attachment 61422 [details]
Created attachment 61423 [details]
I can confirm the same issue with llvmpipe 9.0.1 on Windows 7 / 64. Although it only flickers from time to time, either in the circle's color, or in black.
WIP piglit test at anongit://people.freedesktop.org/~anholt/piglit lineloop-many that doesn't reproduce the problem
There are pretty obvious bugs to be had in the vbo module with many verts of lineloops overflowing internal buffers using Begin/End. Of course, nobody should be using Begin/End today.
Same as bug 81174.
*** This bug has been marked as a duplicate of bug 81174 ***
on Mar 25, 2017 at 09:37:16.
(provided by the Example extension).