From: Brian Date: Tue, 22 May 2007 16:07:49 +0000 (-0600) Subject: don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04255489617f6eeb9604daba14efed8376d1d824;p=mesa.git don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression) --- diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index d4321194a06..f373fde781b 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 */