diff options
author | Xiang, Haihao <[email protected]> | 2008-03-20 11:22:46 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-03-20 11:34:14 +0800 |
commit | bff94a91c6852157a8251652cb61dc699cd8e4f1 (patch) | |
tree | 237921d387430190443b0c60320a7bde5300fde1 /src/mesa/swrast | |
parent | 7183ccaa9df1b5591e7aca926ce4ea5aab4ffc86 (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.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |