mesa: The span array is only populated in single-pixel
point drawing function.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user