title: How to query the depth of the OpenGL stencil buffer
body: <p>I have a function that has a minimum requirement for the bit depth of the OpenGL stencil buffer. I want that function to return an error if the current stencil buffer does not meet that requirement (or if there is no stencil buffer). Since GL_STENCIL_BITS is deprecated, what is the correct way to query for the bit depth of the stencil buffer?</p>