fix some CHAN_TYPE==GL_FLOAT breakage
authorRichard Hughes <hughsient@gmail.com>
Sat, 7 Apr 2007 14:46:10 +0000 (08:46 -0600)
committerBrian <brian@yutani.localnet.net>
Sat, 7 Apr 2007 14:46:10 +0000 (08:46 -0600)
src/mesa/swrast/s_tritemp.h

index c2b757f33edc443f723f95382ca62bb11be012e7..b25d3d1550cf41067024b9a1bdf9515e87193455 100644 (file)
@@ -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]);