summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-09-16 17:15:05 +0200
committerFrancisco Jerez <[email protected]>2010-09-16 19:44:21 +0200
commit7b06fdbd3319aae394e66f3a87de9561295bb049 (patch)
tree5dfb39cc90e834b871b5ef133bf06cdb7c7d025e /src
parent0a6cfa1668af7c5541c9d56436776514a6c493d9 (diff)
dri/nv04: Fix up color mask.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/nouveau/nv04_context.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv04_context.c b/src/mesa/drivers/dri/nouveau/nv04_context.c
index 9c32b480b0f..1003afbca44 100644
--- a/src/mesa/drivers/dri/nouveau/nv04_context.c
+++ b/src/mesa/drivers/dri/nouveau/nv04_context.c
@@ -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;