diff options
author | Brian <[email protected]> | 2007-06-22 09:47:30 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-06-22 09:47:30 -0600 |
commit | 1d52b6aaf41b32aaf8d1cdf5a3cd5ff4ecba28f4 (patch) | |
tree | b7450442ccbee612502a4251a20c12721272fd22 /src/mesa/swrast/s_span.c | |
parent | 1bf507656921f216a69599143f1aef9bbb170b4e (diff) |
fix bug rendering points with fragment program (see #11330)
Diffstat (limited to 'src/mesa/swrast/s_span.c')
-rw-r--r-- | src/mesa/swrast/s_span.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index 9777391ded2..4ab6e2e9fbf 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.5.3 + * Version: 7.1 * * Copyright (C) 1999-2007 Brian Paul All Rights Reserved. * @@ -1178,7 +1178,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); } - interpolate_active_attribs(ctx, span, ~0); + if (span->primitive != GL_POINT) { + /* for points, we populated the arrays already */ + interpolate_active_attribs(ctx, span, ~0); + } span->array->ChanType = GL_FLOAT; if (!(span->arrayMask & SPAN_Z)) |