Reviewed-by: Jordan Justen <jordan.l.jus...@intel.com>
On Fri, Oct 11, 2013 at 11:36 AM, Paul Berry <stereotype...@gmail.com> wrote: > Previously, if drawing failed due to a GL error, no primitives would > be generated, so the test would have nothing to check, and it would > erroneously pass. Avoid that by checking for GL errors at the end of > the test. > --- > tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c > b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c > index d436e21..4baa4be 100644 > --- a/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c > +++ b/tests/spec/glsl-1.50/execution/geometry/primitive-id-restart.c > @@ -262,6 +262,8 @@ piglit_init(int argc, char **argv) > } > glUnmapBuffer(GL_TRANSFORM_FEEDBACK_BUFFER); > > + pass = piglit_check_gl_error(GL_NO_ERROR) && pass; > + > piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); > } > > -- > 1.8.4 > > _______________________________________________ > Piglit mailing list > Piglit@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/piglit _______________________________________________ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit