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);