summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEdward Rudd <urkle@outoforder.cc>2013-07-08 17:51:17 -0400
committerEdward Rudd <urkle@outoforder.cc>2013-07-08 17:51:17 -0400
commit5d3f1548080eddbda2b89f9127016e98533a166d (patch)
tree409b28fed60d3fdd39771ec2466969cf2d264065 /test
parent0e46f3f31fc0b302ac72e32780ae599fb419426d (diff)
change fsaa argument for testgl to accept a # of samples for FSAA
Diffstat (limited to 'test')
-rw-r--r--test/testgl2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testgl2.c b/test/testgl2.c
index 7eea0f5990..f01bbd806d 100644
--- a/test/testgl2.c
+++ b/test/testgl2.c
@@ -195,9 +195,9 @@ main(int argc, char *argv[])
consumed = SDLTest_CommonArg(state, i);
if (consumed == 0) {
- if (SDL_strcasecmp(argv[i], "--fsaa") == 0) {
- ++fsaa;
- consumed = 1;
+ if (SDL_strcasecmp(argv[i], "--fsaa") == 0 && i+1 < argc) {
+ fsaa = atoi(argv[i+1]);
+ consumed = 2;
} else if (SDL_strcasecmp(argv[i], "--accel") == 0 && i+1 < argc) {
accel = atoi(argv[i+1]);
consumed = 2;
@@ -206,7 +206,7 @@ main(int argc, char *argv[])
}
}
if (consumed < 0) {
- fprintf(stderr, "Usage: %s %s [--fsaa] [--accel n]\n", argv[0],
+ fprintf(stderr, "Usage: %s %s [--fsaa n] [--accel n]\n", argv[0],
SDLTest_CommonUsage(state));
quit(1);
}