diff options
author | Brian Paul <[email protected]> | 2001-09-13 22:12:54 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-09-13 22:12:54 +0000 |
commit | dcbe4d6d2f3eb2c099838875780991da34884646 (patch) | |
tree | d1c074b2d7e458f3459c96ce2a6385ad20e8e27c /src/mesa/swrast/s_tritemp.h | |
parent | d22554d2cec07d6a8c11d5aef07835aef8d9a030 (diff) |
minor optimizations for flat shading (Klaus Niederkrueger)
Diffstat (limited to 'src/mesa/swrast/s_tritemp.h')
-rw-r--r-- | src/mesa/swrast/s_tritemp.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h index 08a725cbd8a..be69d7577d5 100644 --- a/src/mesa/swrast/s_tritemp.h +++ b/src/mesa/swrast/s_tritemp.h @@ -1,4 +1,4 @@ -/* $Id: s_tritemp.h,v 1.25 2001/09/13 21:54:29 brianp Exp $ */ +/* $Id: s_tritemp.h,v 1.26 2001/09/13 22:12:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -400,6 +400,7 @@ } else { ASSERT (ctx->Light.ShadeModel == GL_FLAT); + span.activeMask |= SPAN_FLAT; drdx = drdy = 0.0F; dgdx = dgdy = 0.0F; dbdx = dbdy = 0.0F; @@ -506,7 +507,6 @@ dsbdx = dsbdy = span.specBlueStep = 0; } #endif - #ifdef INTERP_INDEX span.activeMask |= SPAN_INDEX; if (ctx->Light.ShadeModel == GL_SMOOTH) { @@ -518,6 +518,7 @@ didy = oneOverArea * (eMaj.dx * eBot_di - eMaj_di * eBot.dx); } else { + span.activeMask |= SPAN_FLAT; didx = didy = 0.0F; span.indexStep = 0; } @@ -542,7 +543,6 @@ } #endif - #ifdef INTERP_TEX span.activeMask |= SPAN_TEXTURE; { @@ -591,7 +591,6 @@ } # endif #endif - #ifdef INTERP_MULTITEX span.activeMask |= SPAN_TEXTURE; # ifdef INTERP_LAMBDA |