Mercurial > sdl-ios-xcode
diff test/testgl2.c @ 5249:762e40fb8e28
Be explicit about what display you're querying. The default display is 0.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 10 Feb 2011 12:14:37 -0800 |
parents | 19691cebb866 |
children |
line wrap: on
line diff
--- a/test/testgl2.c Thu Feb 10 11:39:08 2011 -0800 +++ b/test/testgl2.c Thu Feb 10 12:14:37 2011 -0800 @@ -234,7 +234,7 @@ SDL_GL_SetSwapInterval(0); } - SDL_GetCurrentDisplayMode(&mode); + SDL_GetCurrentDisplayMode(0, &mode); printf("Screen BPP: %d\n", SDL_BITSPERPIXEL(mode.format)); printf("\n"); printf("Vendor : %s\n", glGetString(GL_VENDOR));