From e7ca0e126e1b838d7650eb480adfd548723bcea9 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Mon, 1 Mar 2010 01:56:38 +0100 Subject: [PATCH] dri/nouveau: Combine the dummy texture more deterministically on nv0x. --- src/mesa/drivers/dri/nouveau/nv04_state_raster.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c index b52922e..89c6753 100644 --- a/src/mesa/drivers/dri/nouveau/nv04_state_raster.c +++ b/src/mesa/drivers/dri/nouveau/nv04_state_raster.c @@ -300,7 +300,10 @@ nv04_emit_blend(GLcontext *ctx, int emit) blend |= NV04_TEXTURED_TRIANGLE_BLEND_SHADE_MODE_FLAT; /* Texture environment. */ - blend |= get_texenv_mode(ctx->Texture.Unit[0].EnvMode); + if (ctx->Texture._EnabledUnits) + blend |= get_texenv_mode(ctx->Texture.Unit[0].EnvMode); + else + blend |= get_texenv_mode(GL_MODULATE); /* Fog. */ if (ctx->Fog.Enabled) -- 2.7.4