Initializes the vertex color back to white at the start of each frame. Otherwise, the color set by the abi test is left set, corrupting subsequent frames (the first two triangles end up being red rather than white).
Signed-off-by: Chris Forbes <[email protected]> --- tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c b/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c index 0323699..ef978b7 100644 --- a/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c +++ b/tests/spec/arb_vertex_type_2_10_10_10_rev/draw-vertices-2101010.c @@ -206,6 +206,7 @@ piglit_display(void) glClear(GL_COLOR_BUFFER_BIT); glEnableClientState(GL_VERTEX_ARRAY); + glColor4f(1,1,1,1); for (i = 0; tests[i].test; i++) { glBindBuffer(GL_ARRAY_BUFFER, 0); -- 1.7.12.2 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
