]> git.mxchange.org Git - flightgear.git/commitdiff
Don't ask for 32 bit depth buffer. Some cards do only 24, leaving 8
authorandy <andy>
Fri, 9 Apr 2004 14:52:03 +0000 (14:52 +0000)
committerandy <andy>
Fri, 9 Apr 2004 14:52:03 +0000 (14:52 +0000)
for the alpha channel.

src/Main/fg_os_sdl.cxx

index eebb4ae7c049f7970abb9717cb1ba33fb9993dfa..0190ad784cfce06cc28e66e7151eeda1a5dd8c14 100644 (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