[Piglit] [PATCH v4 1/4] primitive-restart: probe pixel 0, 0 to make sure it was not drawn
Jordan Justen
jordan.l.justen at intel.com
Sun May 27 21:37:55 PDT 2012
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 <jordan.l.justen at intel.com>
---
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
More information about the Piglit
mailing list