0

Stencil test in OpenGL Red Book says:

the stencil test takes place only if there is a stencil buffer.

How can I find out, if there is a stencil buffer in my OpenGL / graphics card implementation ?

Dimitar
  • 4,402
  • 4
  • 31
  • 47
Sania Programmer
  • 264
  • 4
  • 13

1 Answers1

0

All modern graphics cards will have a stencil buffer, the Red Book is referring to whether or not the stencil test is currently enabled (using glEnable(GL_STENCIL_TEST) and glDisable(GL_STENCIL_TEST)).

Jackson Pope
  • 14,520
  • 6
  • 56
  • 80
  • 3
    This seems a little misleading, there's more to using stencil buffer than just enabling it. Most importantly you have to request it to be included when you create the window (instructions are OS/window library specific), or else you won't get one. – Tim Jul 11 '12 at 16:12