summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_context.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-05-22 10:07:49 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-05-22 10:07:49 -0600
commit04255489617f6eeb9604daba14efed8376d1d824 (patch)
treef451e153e54a594ad7fc092d503f6d6698d310d9 /src/mesa/swrast/s_context.c
parente0885b84a0e10d6a3c976c8dc52a5fdc175635bb (diff)
don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression)
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r--src/mesa/swrast/s_context.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index d4321194a0..f373fde781 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -549,6 +549,7 @@ _swrast_update_fragment_attribs(GLcontext *ctx)
if (ctx->FragmentProgram._Current) {
/* fragment program/shader */
attribsMask = ctx->FragmentProgram._Current->Base.InputsRead;
+ attribsMask &= ~FRAG_BIT_WPOS; /* WPOS is always handled specially */
}
else if (ctx->ATIFragmentShader._Enabled) {
attribsMask = ~0; /* XXX fix me */