1
0
Fork 0

Patch from Robert Swam to block enabling stencil at 16 bpp for glut

(allowing FlightGear to work at 16 bpp again for glut users).
This commit is contained in:
david 2004-11-29 03:17:19 +00:00
parent 63c1f4b613
commit ffafb573b2

View file

@ -191,7 +191,7 @@ void fgOSOpenWindow(int w, int h, int bpp, bool alpha,
{ {
int mode = GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE; int mode = GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE;
if(alpha) mode |= GLUT_ALPHA; if(alpha) mode |= GLUT_ALPHA;
if(stencil) mode |= GLUT_STENCIL; if(stencil && bpp > 16) mode |= GLUT_STENCIL;
glutInitDisplayMode(mode); glutInitDisplayMode(mode);
glutInitWindowSize(w, h); glutInitWindowSize(w, h);