summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-07-31 13:57:03 -0600
committerBrian Paul <brianp@vmware.com>2009-07-31 13:57:03 -0600
commitf7618f4f37d42461b1a6feaa392935d1ae703873 (patch)
treea7b27d1312aa61c24de79fa60e89b494f2a64fb3 /src
parent23c0e812bc27e6735f8e7dc48616d90a4b375b28 (diff)
swrast: fix incorrect texcoord attribute test
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast/s_points.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_points.c b/src/mesa/swrast/s_points.c
index 64c9cda516..50ec2063a5 100644
--- a/src/mesa/swrast/s_points.c
+++ b/src/mesa/swrast/s_points.c
@@ -139,10 +139,10 @@ sprite_point(GLcontext *ctx, const SWvertex *vert)
}
ATTRIB_LOOP_BEGIN
- if ((attr >= FRAG_ATTRIB_TEX0 && attr <= FRAG_ATTRIB_TEX7) ||
- attr >= FRAG_ATTRIB_VAR0) {
+ if (attr >= FRAG_ATTRIB_TEX0 && attr <= FRAG_ATTRIB_TEX7) {
+ /* a texcoord attribute */
const GLuint u = attr - FRAG_ATTRIB_TEX0;
- /* a texcoord */
+ ASSERT(u < Elements(ctx->Point.CoordReplace));
if (ctx->Point.CoordReplace[u]) {
tCoords[numTcoords++] = attr;