dri/nv04: Fix up color mask.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 15:15:05 +0000 (17:15 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Thu, 16 Sep 2010 17:44:21 +0000 (19:44 +0200)
src/mesa/drivers/dri/nouveau/nv04_context.c

index 9c32b480b0f030d587a2d743553da2448b7b6dcf..1003afbca44a6b1b196b71fe577422cefa0b4e64 100644 (file)
@@ -55,7 +55,11 @@ nv04_context_engine(GLcontext *ctx)
        if ((ctx->Texture.Unit[0]._ReallyEnabled &&
             texunit_needs_combiners(&ctx->Texture.Unit[0])) ||
            ctx->Texture.Unit[1]._ReallyEnabled ||
-           ctx->Stencil.Enabled)
+           ctx->Stencil.Enabled ||
+           !(ctx->Color.ColorMask[0][RCOMP] &&
+             ctx->Color.ColorMask[0][GCOMP] &&
+             ctx->Color.ColorMask[0][BCOMP] &&
+             ctx->Color.ColorMask[0][ACOMP]))
                fahrenheit = hw->eng3dm;
        else
                fahrenheit = hw->eng3d;