From 04255489617f6eeb9604daba14efed8376d1d824 Mon Sep 17 00:00:00 2001 From: Brian Date: Tue, 22 May 2007 10:07:49 -0600 Subject: [PATCH] don't treat FRAG_BIT_WPOS as a generic attribute (fixes depth peel regression) --- src/mesa/swrast/s_context.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- 2.30.2