OSDN Git Service

mesa: fix stencil state problem when GL_ATI_separate_stencil wasn't enabled
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 14 Jul 2008 15:51:35 +0000 (09:51 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 14 Jul 2008 15:51:35 +0000 (09:51 -0600)
commitc62cb6be6c0e67a94320e3f25c182b07b3e78056
tree042a6c49510b5b240114c401774e548f0cfaedd2
parent4430597bf6944951136a16c39a7bc458dc926800
mesa: fix stencil state problem when GL_ATI_separate_stencil wasn't enabled

In glStencilFunc/Op/Mask() set both the front and back-face state, unless
GL_EXT_stencil_two_side is enabled.  Before, we only set the front+back state
if GL_ATI_separate_stencil was enabled.

Ultimately, we probably should remove GL_EXT_stencil_two_side since it's
incompatible with GL 2.x.
src/mesa/main/stencil.c