mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-28 10:50:39 +02:00
mesa: The span array is only populated in single-pixel
point drawing function.
This commit is contained in:
parent
7183ccaa9d
commit
bff94a91c6
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue