test/testgl2.c
changeset 1967 01e29c3e9a29
parent 1965 a788656ca29a
child 1985 8055185ae4ed
     1.1 --- a/test/testgl2.c	Sat Aug 05 17:12:22 2006 +0000
     1.2 +++ b/test/testgl2.c	Sat Aug 05 22:34:23 2006 +0000
     1.3 @@ -165,6 +165,7 @@
     1.4      int fsaa, accel;
     1.5      int value;
     1.6      int i, done;
     1.7 +    SDL_DisplayMode mode;
     1.8      SDL_Event event;
     1.9      Uint32 then, now, frames;
    1.10  
    1.11 @@ -235,8 +236,8 @@
    1.12          SDL_GL_SetSwapInterval(0);
    1.13      }
    1.14  
    1.15 -    printf("Screen BPP: %d\n",
    1.16 -           SDL_BITSPERPIXEL(SDL_GetCurrentDisplayMode()->format));
    1.17 +    SDL_GetCurrentDisplayMode(&mode);
    1.18 +    printf("Screen BPP: %d\n", SDL_BITSPERPIXEL(mode.format));
    1.19      printf("\n");
    1.20      printf("Vendor     : %s\n", glGetString(GL_VENDOR));
    1.21      printf("Renderer   : %s\n", glGetString(GL_RENDERER));