projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
480bb4c
)
mesa: initialize ctx->Stencil._BackFace = 1
author
Brian Paul
<brianp@vmware.com>
Thu, 19 Feb 2009 21:34:33 +0000
(14:34 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 19 Feb 2009 21:45:26 +0000
(14:45 -0700)
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
patch
|
blob
|
history
diff --git
a/src/mesa/main/stencil.c
b/src/mesa/main/stencil.c
index b4ea9978d874bfc858083d1db81992537285c167..6d6bbb2286b38b3b0fe8baa5c8096c50f0392e95 100644
(file)
--- 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;
}