The render will only cover a single layer, and the code expects the other layers to be 0'd out, so do a big clear first.
Signed-off-by: Ilia Mirkin <[email protected]> --- tests/spec/gl-3.2/layered-rendering/gl-layer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/spec/gl-3.2/layered-rendering/gl-layer.c b/tests/spec/gl-3.2/layered-rendering/gl-layer.c index c3d4a55..a25518e 100644 --- a/tests/spec/gl-3.2/layered-rendering/gl-layer.c +++ b/tests/spec/gl-3.2/layered-rendering/gl-layer.c @@ -157,6 +157,8 @@ bool test_gl_layer(GLint prog, int layers, float *expected) piglit_report_result(PIGLIT_FAIL); } + glClear(GL_COLOR_BUFFER_BIT); + glUseProgram(prog); piglit_draw_rect(-1, -1, 2, 2); -- 1.8.3.2 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
