Since failures of primitive restart sometimes lead a vertex to appear at 0, 0, we test this pixel to make sure it was not drawn.
Signed-off-by: Jordan Justen <[email protected]> --- tests/general/primitive-restart.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/general/primitive-restart.c b/tests/general/primitive-restart.c index 3642ffa..a7bb176 100644 --- a/tests/general/primitive-restart.c +++ b/tests/general/primitive-restart.c @@ -54,6 +54,10 @@ check_rendering(void) GLboolean draw = GL_TRUE; GLfloat x; + if (!piglit_probe_pixel_rgb(0, 0, black)) { + return GL_FALSE; + } + for (x = x0 + 0.5 * dx; x < x1; x += dx) { GLboolean pass; const int ix = (int) x; -- 1.7.9.5 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
