summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_pointtemp.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2007-04-28 07:50:06 -0600
committerBrian <brian@yutani.localnet.net>2007-04-28 07:50:06 -0600
commitbfaf6156fbc81c8073b7562365331d306d4de75a (patch)
tree0f0e93c09aadef39965718dca96d862267a0dff1 /src/mesa/swrast/s_pointtemp.h
parentd741b10be6c254a3c52f93b9f2241aeb8ba7eba1 (diff)
additional checks that attr is a texcoord
Diffstat (limited to 'src/mesa/swrast/s_pointtemp.h')
-rw-r--r--src/mesa/swrast/s_pointtemp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_pointtemp.h b/src/mesa/swrast/s_pointtemp.h
index d118a532a4..dddc2f7f40 100644
--- a/src/mesa/swrast/s_pointtemp.h
+++ b/src/mesa/swrast/s_pointtemp.h
@@ -275,7 +275,7 @@ NAME ( GLcontext *ctx, const SWvertex *vert )
#if FLAGS & ATTRIBS
ATTRIB_LOOP_BEGIN
COPY_4V(span->array->attribs[attr][count], attrib[attr]);
- if (attr < FRAG_ATTRIB_VAR0) {
+ if (attr < FRAG_ATTRIB_VAR0 && attr >= FRAG_ATTRIB_TEX0) {
const GLuint u = attr - FRAG_ATTRIB_TEX0;
span->array->lambda[u][count] = 0.0;
}