summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/stencil.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-02-19 14:34:33 -0700
committerIan Romanick <[email protected]>2009-03-13 17:38:36 -0700
commite428cf3afd464b1b823ba63ff815635ad282d2ae (patch)
treefca41787e6711b7975e539f12b707e5eb0122d21 /src/mesa/main/stencil.c
parent842b5164d29ae92808ab9b01130178810c031403 (diff)
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). (cherry picked from commit 2a968113a925845331f0532a5a20d9fa1502c118)
Diffstat (limited to 'src/mesa/main/stencil.c')
-rw-r--r--src/mesa/main/stencil.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c
index b4ea9978d87..6d6bbb2286b 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;
}