summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2001-02-23 23:14:11 +0000
committerBrian Paul <[email protected]>2001-02-23 23:14:11 +0000
commit0d04827f6dd99bd2fb8055ccfff03482802e8500 (patch)
tree5081a22ebf9d04e62002e4a96b08e4634cbbd049
parent74b775e14de000027492f6ea3c836aa82f850d21 (diff)
another fix in _mesa_stencil_and_ztest_pixels() for hardware fallbacks
-rw-r--r--src/mesa/swrast/s_stencil.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mesa/swrast/s_stencil.c b/src/mesa/swrast/s_stencil.c
index 5f308ab28cb..dd17acfd2bd 100644
--- a/src/mesa/swrast/s_stencil.c
+++ b/src/mesa/swrast/s_stencil.c
@@ -1,4 +1,4 @@
-/* $Id: s_stencil.c,v 1.6 2001/02/23 20:08:29 brianp Exp $ */
+/* $Id: s_stencil.c,v 1.7 2001/02/23 23:14:11 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -921,13 +921,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);
}