fog really needs W
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 30 Aug 2004 08:40:05 +0000 (08:40 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 30 Aug 2004 08:40:05 +0000 (08:40 +0000)
src/mesa/drivers/dri/tdfx/tdfx_vb.c

index aff90ca..04c4954 100644 (file)
@@ -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) {