summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Borca <dborca@users.sourceforge.net>2004-08-30 08:40:05 +0000
committerDaniel Borca <dborca@users.sourceforge.net>2004-08-30 08:40:05 +0000
commit554321af7b6b33fe0e6e6578a6444362110d891d (patch)
treeec1dd3364ba425129d509f507a2836f01897a9a6 /src
parentb1f709cc881138d8aef06381edb0fde927f69307 (diff)
fog really needs W
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/tdfx/tdfx_vb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_vb.c b/src/mesa/drivers/dri/tdfx/tdfx_vb.c
index aff90cab73..04c4954234 100644
--- a/src/mesa/drivers/dri/tdfx/tdfx_vb.c
+++ b/src/mesa/drivers/dri/tdfx/tdfx_vb.c
@@ -300,6 +300,8 @@ void tdfxChooseVertexState( GLcontext *ctx )
} else if (ctx->Texture._EnabledUnits & 0x1) {
/* unit 0 enabled */
ind |= TDFX_W_BIT|TDFX_TEX0_BIT;
+ } else if (fxMesa->Fog.Mode != GR_FOG_DISABLE) {
+ ind |= TDFX_W_BIT;
}
if (fxMesa->Fog.Mode == GR_FOG_WITH_TABLE_ON_FOGCOORD_EXT) {