summaryrefslogtreecommitdiff
path: root/tests/general/primitive-restart.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-07-20 09:06:03 -0600
committerBrian Paul <brianp@vmware.com>2010-07-20 09:09:20 -0600
commit9a2f0cf3512790d493dd6d4335fb0f504a48f59a (patch)
tree0df8962841e48ddc814295701c8b16d1b0ec8425 /tests/general/primitive-restart.c
parentc7726de0b67c7b422c29ade0c0fa88e3b8db0813 (diff)
primitive-restart: added piglit_ortho_projection() call
Diffstat (limited to 'tests/general/primitive-restart.c')
-rw-r--r--tests/general/primitive-restart.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/general/primitive-restart.c b/tests/general/primitive-restart.c
index 77ac0f047..4298b5eed 100644
--- a/tests/general/primitive-restart.c
+++ b/tests/general/primitive-restart.c
@@ -246,6 +246,8 @@ test_draw_elements(GLenum primMode, GLenum indexType)
printf("%2d: %d\n", i, elements[i]);
}
+ piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
+
glClear(GL_COLOR_BUFFER_BIT);
glColor4fv(green);
@@ -268,8 +270,8 @@ test_draw_elements(GLenum primMode, GLenum indexType)
/* Draw */
if (0) {
- /* debug */
- glDrawArrays(GL_TRIANGLE_STRIP, 0, 24);
+ /* XXX also test non-indexed drawing someday */
+ glDrawArrays(primMode, 0, NUM_VERTS);
}
else {
switch (indexType) {