OSDN Git Service

fix color interpolation for CHAN_BITS==32
authorBrian <brian.paul@tungstengraphics.com>
Thu, 26 Jul 2007 14:22:28 +0000 (08:22 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 26 Jul 2007 14:22:28 +0000 (08:22 -0600)
src/mesa/swrast/s_span.c

index f23272c..cfc65be 100644 (file)
@@ -1358,7 +1358,7 @@ _swrast_write_rgba_span( GLcontext *ctx, SWspan *span)
 
 #if CHAN_BITS == 32
    if ((span->arrayAttribs & FRAG_BIT_COL0) == 0) {
-      interpolate_int_colors(ctx, span);
+      interpolate_active_attribs(ctx, span, FRAG_BIT_COL0);
    }
 #else
    if ((span->arrayMask & SPAN_RGBA) == 0) {