From ffafb573b2d486c5d5d75a9162d6181b25a5d7b7 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 29 Nov 2004 03:17:19 +0000 Subject: [PATCH] Patch from Robert Swam to block enabling stencil at 16 bpp for glut (allowing FlightGear to work at 16 bpp again for glut users). --- src/Main/fg_os.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/fg_os.cxx b/src/Main/fg_os.cxx index 067503834..5d14659aa 100644 --- a/src/Main/fg_os.cxx +++ b/src/Main/fg_os.cxx @@ -191,7 +191,7 @@ void fgOSOpenWindow(int w, int h, int bpp, bool alpha, { int mode = GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE; if(alpha) mode |= GLUT_ALPHA; - if(stencil) mode |= GLUT_STENCIL; + if(stencil && bpp > 16) mode |= GLUT_STENCIL; glutInitDisplayMode(mode); glutInitWindowSize(w, h); -- 2.39.5