[Piglit] [PATCH] layered-rendering/gl-layer: clear textures before render

Ilia Mirkin imirkin at alum.mit.edu
Mon Jan 13 20:48:04 PST 2014


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 <imirkin at alum.mit.edu>
---
 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



More information about the Piglit mailing list