From 1dca0891492dc5d2974239f04883a41a1738d91f Mon Sep 17 00:00:00 2001 From: Brian Date: Wed, 7 Mar 2007 10:42:44 -0700 Subject: fix deferredTexture bug --- src/mesa/swrast/s_span.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa') diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 724cf616e84..a2044d0042e 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1351,7 +1351,7 @@ _swrast_write_rgba_span( GLcontext *ctx, SWspan *span) } else if (shaderOrTexture) { if (ctx->FragmentProgram._Current) { - if (ctx->FragmentProgram.Current->Base.OutputsWritten + if (ctx->FragmentProgram._Current->Base.OutputsWritten & (1 << FRAG_RESULT_DEPR)) { /* Z comes from fragment program/shader */ deferredTexture = GL_FALSE; -- cgit v1.2.3