[Piglit] [PATCH 1/2] draw-elements-base-vertex-bounds: s/NV/ARB/ and add comments

Ian Romanick idr at freedesktop.org
Thu Apr 5 12:19:26 PDT 2012


On 04/05/2012 11:19 AM, Brian Paul wrote:

This one is

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

> ---
>   tests/general/draw-elements-base-vertex-bounds.c |    4 +++-
>   1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/tests/general/draw-elements-base-vertex-bounds.c b/tests/general/draw-elements-base-vertex-bounds.c
> index 7f4b318..bdcdba7 100644
> --- a/tests/general/draw-elements-base-vertex-bounds.c
> +++ b/tests/general/draw-elements-base-vertex-bounds.c
> @@ -102,8 +102,10 @@ piglit_display(void)
>   	glClearColor(0.3, 0.3, 0.3, 1);
>   	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
>
> -	glEnable(GL_VERTEX_PROGRAM_NV);
> +	glEnable(GL_VERTEX_PROGRAM_ARB);
> +        /* draw elements 3,4,5 ->verts 3,0,1 (lower-right tri) */
>   	glDrawElements(GL_TRIANGLES, 3, GL_UNSIGNED_INT, indices + 3);
> +        /* draw elements 0,1,2 ->verts (1+1),(2+1),(0+1) (upper-left tri) */
>   	glDrawElementsBaseVertex(GL_TRIANGLES, 3, GL_UNSIGNED_INT, indices, 1);
>   	glFlush();
>



More information about the Piglit mailing list