1
0
Fork 0

Don't ask for 32 bit depth buffer. Some cards do only 24, leaving 8

for the alpha channel.
This commit is contained in:
andy 2004-04-09 14:52:03 +00:00
parent b0a3ce0fc0
commit 53e470ad0c

View file

@ -61,7 +61,7 @@ void fgOSOpenWindow(int w, int h, int bpp,
bool alpha, bool stencil, bool fullscreen)
{
int cbits = (bpp <= 16) ? 5 : 8;
int zbits = (bpp <= 16) ? 16 : 32;
int zbits = (bpp <= 16) ? 16 : 24;
SDL_Init(SDL_INIT_VIDEO|SDL_INIT_NOPARACHUTE); // FIXME: handle errors