projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
swrast: fix selection/feedback regression
[mesa.git]
/
src
/
mesa
/
swrast
/
s_stencil.c
diff --git
a/src/mesa/swrast/s_stencil.c
b/src/mesa/swrast/s_stencil.c
index c925922463e61a8ac0b3bf1071b998185fdeb78f..2e84ddec71fa2f874bd7ae818dfa4a0bc0acfb14 100644
(file)
--- a/
src/mesa/swrast/s_stencil.c
+++ b/
src/mesa/swrast/s_stencil.c
@@
-997,10
+997,12
@@
stencil_and_ztest_pixels( GLcontext *ctx, SWspan *span, GLuint face )
GLboolean
_swrast_stencil_and_ztest_span(GLcontext *ctx, SWspan *span)
{
GLboolean
_swrast_stencil_and_ztest_span(GLcontext *ctx, SWspan *span)
{
+ const GLuint face = (span->facing == 0) ? 0 : ctx->Stencil._BackFace;
+
if (span->arrayMask & SPAN_XY)
if (span->arrayMask & SPAN_XY)
- return stencil_and_ztest_pixels(ctx, span,
span->facing
);
+ return stencil_and_ztest_pixels(ctx, span,
face
);
else
else
- return stencil_and_ztest_span(ctx, span,
span->facing
);
+ return stencil_and_ztest_span(ctx, span,
face
);
}
}