OSDN Git Service

mesa: The span array is only populated in single-pixel
authorXiang, Haihao <haihao.xiang@intel.com>
Thu, 20 Mar 2008 03:22:46 +0000 (11:22 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Thu, 20 Mar 2008 03:34:14 +0000 (11:34 +0800)
point drawing function.

src/mesa/swrast/s_span.c

index d404579..864f77a 100644 (file)
@@ -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;