test/testgl2.c
changeset 3139 7f684f249ec9
parent 3099 82e60908fab1
child 3408 55541ddf13e3
     1.1 --- a/test/testgl2.c	Fri May 15 15:47:37 2009 +0000
     1.2 +++ b/test/testgl2.c	Sat May 23 22:41:08 2009 +0000
     1.3 @@ -242,51 +242,54 @@
     1.4      printf("Extensions : %s\n", glGetString(GL_EXTENSIONS));
     1.5      printf("\n");
     1.6  
     1.7 -    status=SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &value);
     1.8 +    status = SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &value);
     1.9      if (!status) {
    1.10          printf("SDL_GL_RED_SIZE: requested %d, got %d\n", 5, value);
    1.11      } else {
    1.12          printf("Failed to get SDL_GL_RED_SIZE: %s\n", SDL_GetError());
    1.13      }
    1.14 -    status=SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &value);
    1.15 +    status = SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &value);
    1.16      if (!status) {
    1.17          printf("SDL_GL_GREEN_SIZE: requested %d, got %d\n", 5, value);
    1.18      } else {
    1.19          printf("Failed to get SDL_GL_GREEN_SIZE: %s\n", SDL_GetError());
    1.20      }
    1.21 -    status=SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &value);
    1.22 +    status = SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &value);
    1.23      if (!status) {
    1.24          printf("SDL_GL_BLUE_SIZE: requested %d, got %d\n", 5, value);
    1.25      } else {
    1.26          printf("Failed to get SDL_GL_BLUE_SIZE: %s\n", SDL_GetError());
    1.27      }
    1.28 -    status=SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &value);
    1.29 +    status = SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &value);
    1.30      if (!status) {
    1.31          printf("SDL_GL_DEPTH_SIZE: requested %d, got %d\n", 16, value);
    1.32      } else {
    1.33          printf("Failed to get SDL_GL_DEPTH_SIZE: %s\n", SDL_GetError());
    1.34      }
    1.35      if (fsaa) {
    1.36 -        status=SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &value);
    1.37 +        status = SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &value);
    1.38          if (!status) {
    1.39              printf("SDL_GL_MULTISAMPLEBUFFERS: requested 1, got %d\n", value);
    1.40          } else {
    1.41 -            printf("Failed to get SDL_GL_MULTISAMPLEBUFFERS: %s\n", SDL_GetError());
    1.42 +            printf("Failed to get SDL_GL_MULTISAMPLEBUFFERS: %s\n",
    1.43 +                   SDL_GetError());
    1.44          }
    1.45 -        status=SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &value);
    1.46 +        status = SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &value);
    1.47          if (!status) {
    1.48 -            printf("SDL_GL_MULTISAMPLESAMPLES: requested %d, got %d\n", fsaa, value);
    1.49 +            printf("SDL_GL_MULTISAMPLESAMPLES: requested %d, got %d\n", fsaa,
    1.50 +                   value);
    1.51          } else {
    1.52 -            printf("Failed to get SDL_GL_MULTISAMPLESAMPLES: %s\n", SDL_GetError());
    1.53 +            printf("Failed to get SDL_GL_MULTISAMPLESAMPLES: %s\n",
    1.54 +                   SDL_GetError());
    1.55          }
    1.56      }
    1.57      if (accel) {
    1.58 -        status=SDL_GL_GetAttribute(SDL_GL_ACCELERATED_VISUAL, &value);
    1.59 -        if (!status)
    1.60 -        {
    1.61 +        status = SDL_GL_GetAttribute(SDL_GL_ACCELERATED_VISUAL, &value);
    1.62 +        if (!status) {
    1.63              printf("SDL_GL_ACCELERATED_VISUAL: requested 1, got %d\n", value);
    1.64          } else {
    1.65 -            printf("Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n", SDL_GetError());
    1.66 +            printf("Failed to get SDL_GL_ACCELERATED_VISUAL: %s\n",
    1.67 +                   SDL_GetError());
    1.68          }
    1.69      }
    1.70