don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression)
authorBrian <brian.paul@tungstengraphics.com>
Tue, 22 May 2007 16:07:49 +0000 (10:07 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 22 May 2007 16:07:49 +0000 (10:07 -0600)
src/mesa/swrast/s_context.c

index d4321194a0672ad3c4e05355d18d8996678eaee3..f373fde781ba16ddd50014e5d90c8b34562ebf4b 100644 (file)
@@ -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 */