From 2a968113a925845331f0532a5a20d9fa1502c118 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 19 Feb 2009 14:34:33 -0700 Subject: mesa: initialize ctx->Stencil._BackFace = 1 Back-face stencil operations didn't work correctly because this value was zero. It needs to be 1 or 2. The only place it's set otherwise is in glEnable/Disable(GL_STENCIL_TEST_TWO_SIDE_EXT). --- src/mesa/main/stencil.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main') diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index b4ea9978d8..6d6bbb2286 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -565,4 +565,5 @@ _mesa_init_stencil(GLcontext *ctx) ctx->Stencil.WriteMask[1] = ~0U; ctx->Stencil.WriteMask[2] = ~0U; ctx->Stencil.Clear = 0; + ctx->Stencil._BackFace = 1; } -- cgit v1.2.3