diff options
author | Brian <[email protected]> | 2007-04-23 22:01:34 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-23 22:01:34 -0600 |
commit | afc132e7a9c2b2c870b61ef10311272b36ea9bf2 (patch) | |
tree | e931b57945e00798fb7c13652c31d195c1204b03 /src/mesa/swrast/s_linetemp.h | |
parent | 335769a875d653f6076e653d3f63c6a4ba64dba2 (diff) |
remove SWvertex->fog field, use attrib field
Diffstat (limited to 'src/mesa/swrast/s_linetemp.h')
-rw-r--r-- | src/mesa/swrast/s_linetemp.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_linetemp.h b/src/mesa/swrast/s_linetemp.h index 6c52e8dd478..76da4467104 100644 --- a/src/mesa/swrast/s_linetemp.h +++ b/src/mesa/swrast/s_linetemp.h @@ -280,8 +280,9 @@ NAME( GLcontext *ctx, const SWvertex *vert0, const SWvertex *vert1 ) #endif #ifdef INTERP_FOG interpFlags |= SPAN_FOG; - span.attrStart[FRAG_ATTRIB_FOGC][0] = vert0->fog; - span.attrStepX[FRAG_ATTRIB_FOGC][0] = (vert1->fog - vert0->fog) / numPixels; + span.attrStart[FRAG_ATTRIB_FOGC][0] = vert0->attrib[FRAG_ATTRIB_FOGC][0]; + span.attrStepX[FRAG_ATTRIB_FOGC][0] = (vert1->attrib[FRAG_ATTRIB_FOGC][0] + - vert0->attrib[FRAG_ATTRIB_FOGC][0]) / numPixels; #endif #ifdef INTERP_TEX interpFlags |= SPAN_TEXTURE; |