In general, fill in pointers to structures, rather than return them.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402014
This commit is contained in:
parent
ade506e8d5
commit
a90680c736
8 changed files with 111 additions and 85 deletions
|
@ -165,6 +165,7 @@ main(int argc, char *argv[])
|
|||
int fsaa, accel;
|
||||
int value;
|
||||
int i, done;
|
||||
SDL_DisplayMode mode;
|
||||
SDL_Event event;
|
||||
Uint32 then, now, frames;
|
||||
|
||||
|
@ -235,8 +236,8 @@ main(int argc, char *argv[])
|
|||
SDL_GL_SetSwapInterval(0);
|
||||
}
|
||||
|
||||
printf("Screen BPP: %d\n",
|
||||
SDL_BITSPERPIXEL(SDL_GetCurrentDisplayMode()->format));
|
||||
SDL_GetCurrentDisplayMode(&mode);
|
||||
printf("Screen BPP: %d\n", SDL_BITSPERPIXEL(mode.format));
|
||||
printf("\n");
|
||||
printf("Vendor : %s\n", glGetString(GL_VENDOR));
|
||||
printf("Renderer : %s\n", glGetString(GL_RENDERER));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue