diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2004-12-15 01:11:36 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2004-12-15 01:11:36 +0000 |
commit | 69a5896238c3553422fcf80feebe5fa39e636006 (patch) | |
tree | 1db42924a6c8f9f205796efc5bc686d30f36f097 /src/mesa/swrast | |
parent | 55481b3a2977179f47b6d8cec0700e0991dba462 (diff) |
init span.w, dwdx, dwdy in case we're running a fragment program
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r-- | src/mesa/swrast/s_linetemp.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_linetemp.h b/src/mesa/swrast/s_linetemp.h index 5d9591d83f..efdf149069 100644 --- a/src/mesa/swrast/s_linetemp.h +++ b/src/mesa/swrast/s_linetemp.h @@ -1,9 +1,8 @@ - /* * Mesa 3-D graphics library - * Version: 5.1 + * Version: 6.3 * - * Copyright (C) 1999-2002 Brian Paul All Rights Reserved. + * Copyright (C) 1999-2004 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -336,6 +335,11 @@ NAME( GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1 ) INIT_SPAN(span, GL_LINE, numPixels, interpFlags, SPAN_XY); + /* Need these for fragment prog texcoord interpolation */ + span.w = 1.0F; + span.dwdx = 0.0F; + span.dwdy = 0.0F; + /* * Draw */ |