change fsaa argument for testgl to accept a # of samples for FSAA
authorEdward Rudd <urkle@outoforder.cc>
Mon, 08 Jul 2013 17:51:17 -0400
changeset 7381aa0d6c66e3fa
parent 7380 e5830832d3f0
child 7382 898992405fa7
change fsaa argument for testgl to accept a # of samples for FSAA
test/testgl2.c
     1.1 --- a/test/testgl2.c	Mon Jul 08 13:26:59 2013 -0400
     1.2 +++ b/test/testgl2.c	Mon Jul 08 17:51:17 2013 -0400
     1.3 @@ -195,9 +195,9 @@
     1.4  
     1.5          consumed = SDLTest_CommonArg(state, i);
     1.6          if (consumed == 0) {
     1.7 -            if (SDL_strcasecmp(argv[i], "--fsaa") == 0) {
     1.8 -                ++fsaa;
     1.9 -                consumed = 1;
    1.10 +            if (SDL_strcasecmp(argv[i], "--fsaa") == 0 && i+1 < argc) {
    1.11 +                fsaa = atoi(argv[i+1]);
    1.12 +                consumed = 2;
    1.13              } else if (SDL_strcasecmp(argv[i], "--accel") == 0 && i+1 < argc) {
    1.14                  accel = atoi(argv[i+1]);
    1.15                  consumed = 2;
    1.16 @@ -206,7 +206,7 @@
    1.17              }
    1.18          }
    1.19          if (consumed < 0) {
    1.20 -            fprintf(stderr, "Usage: %s %s [--fsaa] [--accel n]\n", argv[0],
    1.21 +            fprintf(stderr, "Usage: %s %s [--fsaa n] [--accel n]\n", argv[0],
    1.22                      SDLTest_CommonUsage(state));
    1.23              quit(1);
    1.24          }