mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 16:10:33 +01:00
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 2a968113a9)
This commit is contained in:
parent
842b5164d2
commit
e428cf3afd
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue