From 54e92e8420a028f07b0971ee8aa93be9b4214579 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 16 Mar 2003 22:02:36 +0000 Subject: Store partial derivative values in sw_span structure. Implemented DDX and DDY fragment program instructions (whew!) Not fully tested yet. --- src/mesa/swrast/s_span.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mesa/swrast/s_span.c') diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index cb02ab924d..842f3be3c2 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1,4 +1,4 @@ -/* $Id: s_span.c,v 1.58 2003/03/15 17:33:27 brianp Exp $ */ +/* $Id: s_span.c,v 1.59 2003/03/16 22:02:37 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -76,7 +76,7 @@ void _mesa_span_default_fog( GLcontext *ctx, struct sw_span *span ) { span->fog = _mesa_z_to_fogfactor(ctx, ctx->Current.RasterDistance); - span->fogStep = 0; + span->fogStep = span->dfogdx = span->dfogdy = 0.0F; span->interpMask |= SPAN_FOG; } -- cgit v1.2.3