Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
change fsaa argument for testgl to accept a # of samples for FSAA
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed Jul 8, 2013
1 parent b9106e0 commit ce9d39e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/testgl2.c
Expand Up @@ -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;
Expand All @@ -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);
}
Expand Down

0 comments on commit ce9d39e

Please sign in to comment.