Stencil bit planes

I have a question concerning the stencil buffer. I wanted to know how many bits precision the stencil buffer on my graphics card had, so I ran glGetIntegerv(GL_STENCIL_BITS). The result i got was zero. Does that mean I don’t have a stencil buffer or what? I dont think so, since I’ve written applications that use the stencil buffer. So what do the zero bits really mean? My card is a GeForce 256.

Originally posted by Anders:
I have a question concerning the stencil buffer. I wanted to know how many bits precision the stencil buffer on my graphics card had, so I ran glGetIntegerv(GL_STENCIL_BITS). The result i got was zero. Does that mean I don’t have a stencil buffer or what? I dont think so, since I’ve written applications that use the stencil buffer. So what do the zero bits really mean? My card is a GeForce 256.

Did you create an OpenGL context before calling glGetIntegerv?

(glGetIntegerv(GL_STENCIL_BITS) return zero)
Hello .
This message answer is very late .but is use full
for pesons that have this problem and for solve it
search in the internet .
You should call “glutDisplayMode(…|GL_STENCIL_BUFFER)”
or in dialogs of windows you should set cStencilBits member of
PIXELFORMATDESCRIPTOR of your dialog .

Thank you! That question has been bugging me for 3½ years! Now I can finally sleep at night. :slight_smile: