swrast: fix incorrect texcoord attribute test

This commit is contained in:
Brian Paul 2009-07-31 13:57:03 -06:00
parent 23c0e812bc
commit f7618f4f37

View file

@ -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;