View Full Version : Stencil buffer problem ?

06-30-2005, 08:40 AM
Hello .
I have a big problem . I can not work with stencil buffer .
When I draw a object , OpenGL display it in frame buffer either
I call before it "glStencilFun(GL_NEVER,..." or "glStencilFun(GL_ALWAYS,..."
What is my mistake ?
Thankyou before your favour.

07-06-2005, 04:47 AM

Did you remember to enable stencil testing?

glEnable(GL_STENCIL_TEST) See ya'