diff options
author | Richard Hughes <[email protected]> | 2007-04-07 08:46:10 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-07 08:46:10 -0600 |
commit | 84803279ca83a21d830a76764c25e26e01e7ebc2 (patch) | |
tree | 21b0c0e658beac6e218a83610b3aeb9f4b26a688 /src/mesa/swrast/s_tritemp.h | |
parent | 8d2d6e5194fb49619ed5125d95f8619bdf3b8106 (diff) |
fix some CHAN_TYPE==GL_FLOAT breakage
Diffstat (limited to 'src/mesa/swrast/s_tritemp.h')
-rw-r--r-- | src/mesa/swrast/s_tritemp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h index c2b757f33ed..b25d3d1550c 100644 --- a/src/mesa/swrast/s_tritemp.h +++ b/src/mesa/swrast/s_tritemp.h @@ -561,9 +561,9 @@ static void NAME(GLcontext *ctx, const SWvertex *v0, span.attrStepX[FRAG_ATTRIB_COL1][2] = oneOverArea * (eMaj_dsb * eBot.dy - eMaj.dy * eBot_dsb); span.attrStepY[FRAG_ATTRIB_COL1][2] = oneOverArea * (eMaj.dx * eBot_dsb - eMaj_dsb * eBot.dx); # if CHAN_TYPE == GL_FLOAT - span.specRedStep = span.attrStep[FRAG_ATTRIB_COL1][0]; - span.specGreenStep = span.dsgdx; - span.specBlueStep = span.dsbdx; + span.specRedStep = span.attrStepX[FRAG_ATTRIB_COL1][0]; + span.specGreenStep = span.attrStepX[FRAG_ATTRIB_COL1][1]; + span.specBlueStep = span.attrStepX[FRAG_ATTRIB_COL1][2]; # else span.specRedStep = SignedFloatToFixed(span.attrStepX[FRAG_ATTRIB_COL1][0]); span.specGreenStep = SignedFloatToFixed(span.attrStepX[FRAG_ATTRIB_COL1][1]); |