Fix calculation of fog coordinate in translate_vertex().
authorKeith Whitwell <keith@tungstengraphics.com>
Fri, 30 Mar 2001 00:39:02 +0000 (00:39 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 30 Mar 2001 00:39:02 +0000 (00:39 +0000)
src/mesa/drivers/common/t_dd_vb.c

index 17dcac3b02e0a448b45213a6bc2b0cf2e3d4b6e2..18e93959bad10541976e165206a1a14746580b17 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: t_dd_vb.c,v 1.7 2001/03/17 17:31:42 keithw Exp $ */
+/* $Id: t_dd_vb.c,v 1.8 2001/03/30 00:39:02 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -132,7 +132,7 @@ void TAG(translate_vertex)(GLcontext *ctx,
       dst->specular[1] = src->v.specular.green;
       dst->specular[2] = src->v.specular.blue;
 
-      dst->fog = src->v.color.alpha/255.0;
+      dst->fog = src->v.specular.alpha/255.0;
 
       if (HAVE_PTEX_VERTICES &&
          ((HAVE_TEX2_VERTICES && format == PROJ_TEX3_VERTEX_FORMAT) ||