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

Brian Paul brianp at vmware.com
Thu Apr 5 11:19:50 PDT 2012


---
 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();
 
-- 
1.7.3.4



More information about the Piglit mailing list