From: Xiang, Haihao Date: Thu, 20 Mar 2008 03:22:46 +0000 (+0800) Subject: mesa: The span array is only populated in single-pixel X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bff94a91c6852157a8251652cb61dc699cd8e4f1;p=mesa.git mesa: The span array is only populated in single-pixel point drawing function. --- diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index d4045792790..864f77a4174 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1183,8 +1183,10 @@ shade_texture_span(GLcontext *ctx, SWspan *span) if (span->primitive == GL_BITMAP && span->array->ChanType != GL_FLOAT) { convert_color_type(span, GL_FLOAT, 0); } - if (span->primitive != GL_POINT || ctx->Point.PointSprite) { - /* for points, we populated the arrays already */ + if (span->primitive != GL_POINT || + (span->interpMask & SPAN_RGBA) || + ctx->Point.PointSprite) { + /* for single-pixel points, we populated the arrays already */ interpolate_active_attribs(ctx, span, ~0); } span->array->ChanType = GL_FLOAT;