diff options
author | Brian <[email protected]> | 2007-10-24 11:37:05 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-10-24 12:38:07 -0600 |
commit | f68fce1f1f61997f284b77cca5b5765cd7443240 (patch) | |
tree | e1398a0d0a38ca30a25d667cdfab0db025ebc5d5 /src/mesa/swrast/s_span.c | |
parent | 3a345e000350c1590367f01be5db6f0f10701283 (diff) |
Implement gl_PointCoord attribute for GLSL fragment shaders.
Contains the normalized fragment position within a point sprite.
Diffstat (limited to 'src/mesa/swrast/s_span.c')
-rw-r--r-- | src/mesa/swrast/s_span.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index cfc65bee87f..d9c1d1bec7d 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1180,7 +1180,7 @@ 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) { + if (span->primitive != GL_POINT || ctx->Point.PointSprite) { /* for points, we populated the arrays already */ interpolate_active_attribs(ctx, span, ~0); } |