From 554321af7b6b33fe0e6e6578a6444362110d891d Mon Sep 17 00:00:00 2001 From: Daniel Borca Date: Mon, 30 Aug 2004 08:40:05 +0000 Subject: [PATCH] fog really needs W --- src/mesa/drivers/dri/tdfx/tdfx_vb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/tdfx/tdfx_vb.c b/src/mesa/drivers/dri/tdfx/tdfx_vb.c index aff90ca..04c4954 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) { -- 2.7.4