From: Keith Whitwell Date: Fri, 30 Mar 2001 00:39:02 +0000 (+0000) Subject: Fix calculation of fog coordinate in translate_vertex(). X-Git-Tag: 062012170305~27277 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=afc5699b08b7eb4d29f2872c308800f2ae43d6b0;p=profile%2Fivi%2Fmesa.git Fix calculation of fog coordinate in translate_vertex(). --- diff --git a/src/mesa/drivers/common/t_dd_vb.c b/src/mesa/drivers/common/t_dd_vb.c index 17dcac3..18e9395 100644 --- a/src/mesa/drivers/common/t_dd_vb.c +++ b/src/mesa/drivers/common/t_dd_vb.c @@ -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) ||