fix deferredTexture bug
authorBrian <brian@yutani.localnet.net>
Wed, 7 Mar 2007 17:42:44 +0000 (10:42 -0700)
committerBrian <brian@yutani.localnet.net>
Wed, 7 Mar 2007 17:42:44 +0000 (10:42 -0700)
src/mesa/swrast/s_span.c

index 724cf616e84c9cd9180537ea56625da8f8e3ae58..a2044d0042ea6b2c4ca4b1aba3fb6e1bc5be9462 100644 (file)
@@ -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;