diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-23 23:13:58 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-02-23 23:13:58 +0000 |
commit | 026c1b2e9ccb4a01a74d3007ee853a22ae2cf085 (patch) | |
tree | a4a7fd02568b9df9d185b2faa79c268cf8991cbd /src | |
parent | da2cccaba2ec6974e608ebf50e29bcf359d82650 (diff) |
another fix in _mesa_stencil_and_ztest_pixels() for hardware fallbacks
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/stencil.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/main/stencil.c b/src/mesa/main/stencil.c index a8ba3801fe..0126aab2d7 100644 --- a/src/mesa/main/stencil.c +++ b/src/mesa/main/stencil.c @@ -1,4 +1,4 @@ -/* $Id: stencil.c,v 1.16.4.2 2001/02/23 20:08:09 brianp Exp $ */ +/* $Id: stencil.c,v 1.16.4.3 2001/02/23 23:13:58 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1044,13 +1044,10 @@ _mesa_stencil_and_ztest_pixels( GLcontext *ctx, ASSERT(ctx->Driver.ReadStencilPixels); (*ctx->Driver.ReadStencilPixels)(ctx, n, x, y, stencil); - if (do_stencil_test( ctx, n, stencil, mask ) == GL_FALSE) { - /* all fragments failed the stencil test, we're done. */ - return GL_FALSE; - } - MEMCPY(origMask, mask, n * sizeof(GLubyte)); + (void) do_stencil_test( ctx, n, stencil, mask ); + if (ctx->Depth.Test == GL_FALSE) { apply_stencil_op( ctx, ctx->Stencil.ZPassFunc, n, stencil, mask ); } |