aboutsummaryrefslogtreecommitdiff
path: root/tests/asmparsertest
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-27 14:44:21 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-27 16:13:59 -0700
commita154bdf7bb81cf976eb912def7b48a4e4f93d30a (patch)
treec02e59a69c8185055e38c7dbd230081abe0708dd /tests/asmparsertest
parent360b542ff48930c20218e847031ff510b35fc857 (diff)
asmparsertest: Fix bugs in argv handling for -auto case
Diffstat (limited to 'tests/asmparsertest')
-rw-r--r--tests/asmparsertest/asmparsertest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/asmparsertest/asmparsertest.c b/tests/asmparsertest/asmparsertest.c
index ffbc4b14..c50c59ae 100644
--- a/tests/asmparsertest/asmparsertest.c
+++ b/tests/asmparsertest/asmparsertest.c
@@ -161,17 +161,17 @@ main(int argc, char **argv)
use_ARB = 1;
- if (strcmp(argv[1], "ARBvp1.0") == 0) {
+ if (strcmp(argv[i], "ARBvp1.0") == 0) {
target = GL_VERTEX_PROGRAM_ARB;
piglit_require_extension("GL_ARB_vertex_program");
- } else if (strcmp(argv[1], "ARBfp1.0") == 0) {
+ } else if (strcmp(argv[i], "ARBfp1.0") == 0) {
target = GL_FRAGMENT_PROGRAM_ARB;
piglit_require_extension("GL_ARB_fragment_program");
- } else if (strcmp(argv[1], "NVvp1.0") == 0) {
+ } else if (strcmp(argv[i], "NVvp1.0") == 0) {
target = GL_VERTEX_PROGRAM_NV;
piglit_require_extension("GL_NV_vertex_program");
use_ARB = 0;
- } else if (strcmp(argv[1], "NVfp1.0") == 0) {
+ } else if (strcmp(argv[i], "NVfp1.0") == 0) {
target = GL_FRAGMENT_PROGRAM_NV;
piglit_require_extension("GL_NV_fragment_program");
use_ARB = 0;
@@ -179,7 +179,7 @@ main(int argc, char **argv)
piglit_report_result(PIGLIT_FAILURE);
}
- for (i = 2; i < argc; i++) {
+ for (i++; i < argc; i++) {
compile(argv[i], target, use_ARB);
}