mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 02:30:18 +01:00
another fix in _mesa_stencil_and_ztest_pixels() for hardware fallbacks
This commit is contained in:
parent
74b775e14d
commit
0d04827f6d
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue