summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2008-03-20 11:22:46 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2008-03-20 11:34:14 +0800
commitbff94a91c6852157a8251652cb61dc699cd8e4f1 (patch)
tree237921d387430190443b0c60320a7bde5300fde1 /src/mesa/swrast
parent7183ccaa9df1b5591e7aca926ce4ea5aab4ffc86 (diff)
mesa: The span array is only populated in single-pixel
point drawing function.
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_span.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c
index d404579279..864f77a417 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;