This code adds a flag to SetDeviceWindow() to hint an 8-bit stencil buffer depth, where the current default is 0. On some systems tested, that default breaks glEnable(GL_STENCIL_TEST), including on one MacOS system (GPU unknown) and modern GeForce drivers for models 210 and gtx760. This code allows the current default behavior to remain, while giving an option to fix the issue with the appropriate flag.
This code adds a flag to SetDeviceWindow() to hint an 8-bit stencil buffer depth, where the current default is 0. On some systems tested, that default breaks glEnable(GL_STENCIL_TEST), including on one MacOS system (GPU unknown) and modern GeForce drivers for models 210 and gtx760. This code allows the current default behavior to remain, while giving an option to fix the issue with the appropriate flag.