Temporary hack for stencil bits query

This commit is contained in:
codeanticode
2012-03-23 21:51:46 +00:00
parent 822b603a25
commit 656a82dc98
@@ -5671,7 +5671,13 @@ public class PGraphicsOpenGL extends PGraphics {
depthBits = temp[0];
pgl.glGetIntegerv(PGL.GL_STENCIL_BITS, temp, 0);
stencilBits = temp[0];
stencilBits = temp[0];
if (stencilBits == 0) {
// Dirty hack
stencilBits = 8;
}
// TODO: figure out why glGetIntegerv is not returning the
// correct number of stencil bits...
glParamsRead = true;
}