blitz-research / monkey

Blitz Research Monkey Source
225 stars 59 forks source link

Support stencil buffer flag in SetDeviceWindow() #89

Closed nobuyukinyuu closed 8 years ago

nobuyukinyuu commented 8 years ago

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.

blitz-research commented 8 years ago

Merged, thanks to the addition of the flag.