From: Daniel Borca Date: Mon, 30 Aug 2004 08:40:05 +0000 (+0000) Subject: fog really needs W X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=554321af7b6b33fe0e6e6578a6444362110d891d;p=mesa.git fog really needs W --- diff --git a/src/mesa/drivers/dri/tdfx/tdfx_vb.c b/src/mesa/drivers/dri/tdfx/tdfx_vb.c index aff90cab73b..04c49542346 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) {