[Piglit] [PATCH] draw-vertices-2101010: init color in piglit_draw
Brian Paul
brianp at vmware.com
Tue Oct 9 06:10:27 PDT 2012
On 10/09/2012 02:59 AM, Chris Forbes wrote:
> 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<chrisf at ijw.co.nz>
> ---
> 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);
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the Piglit
mailing list