test/testgl2.c
changeset 1936 83946ee0ff1f
parent 1916 c773b0c0ac89
child 1965 a788656ca29a
     1.1 --- a/test/testgl2.c	Mon Jul 24 23:30:14 2006 +0000
     1.2 +++ b/test/testgl2.c	Tue Jul 25 06:22:42 2006 +0000
     1.3 @@ -244,28 +244,25 @@
     1.4      printf("Extensions : %s\n", glGetString(GL_EXTENSIONS));
     1.5      printf("\n");
     1.6  
     1.7 -    SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_RED_SIZE, &value);
     1.8 +    SDL_GL_GetAttribute(SDL_GL_RED_SIZE, &value);
     1.9      printf("SDL_GL_RED_SIZE: requested %d, got %d\n", 5, value);
    1.10 -    SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_GREEN_SIZE, &value);
    1.11 +    SDL_GL_GetAttribute(SDL_GL_GREEN_SIZE, &value);
    1.12      printf("SDL_GL_GREEN_SIZE: requested %d, got %d\n", 5, value);
    1.13 -    SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_BLUE_SIZE, &value);
    1.14 +    SDL_GL_GetAttribute(SDL_GL_BLUE_SIZE, &value);
    1.15      printf("SDL_GL_BLUE_SIZE: requested %d, got %d\n", 5, value);
    1.16 -    SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_DEPTH_SIZE, &value);
    1.17 +    SDL_GL_GetAttribute(SDL_GL_DEPTH_SIZE, &value);
    1.18      printf("SDL_GL_DEPTH_SIZE: requested %d, got %d\n", 16, value);
    1.19 -    SDL_GL_GetWindowAttribute(state->windows[0], SDL_GL_DOUBLEBUFFER, &value);
    1.20 +    SDL_GL_GetAttribute(SDL_GL_DOUBLEBUFFER, &value);
    1.21      printf("SDL_GL_DOUBLEBUFFER: requested 1, got %d\n", value);
    1.22      if (fsaa) {
    1.23 -        SDL_GL_GetWindowAttribute(state->windows[0],
    1.24 -                                  SDL_GL_MULTISAMPLEBUFFERS, &value);
    1.25 +        SDL_GL_GetAttribute(SDL_GL_MULTISAMPLEBUFFERS, &value);
    1.26          printf("SDL_GL_MULTISAMPLEBUFFERS: requested 1, got %d\n", value);
    1.27 -        SDL_GL_GetWindowAttribute(state->windows[0],
    1.28 -                                  SDL_GL_MULTISAMPLESAMPLES, &value);
    1.29 +        SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &value);
    1.30          printf("SDL_GL_MULTISAMPLESAMPLES: requested %d, got %d\n", fsaa,
    1.31                 value);
    1.32      }
    1.33      if (accel) {
    1.34 -        SDL_GL_GetWindowAttribute(state->windows[0],
    1.35 -                                  SDL_GL_ACCELERATED_VISUAL, &value);
    1.36 +        SDL_GL_GetAttribute(SDL_GL_ACCELERATED_VISUAL, &value);
    1.37          printf("SDL_GL_ACCELERATED_VISUAL: requested 1, got %d\n", value);
    1.38      }
    1.39