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:
parent
63c1f4b613
commit
ffafb573b2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue