summaryrefslogtreecommitdiff
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-05-10 18:01:19 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-05-10 18:01:19 +0000
commit1a3e034b122267c4e63ba994c56caead5d9d6434 (patch)
tree95b754d81ef47da85ed72ebc05935ad61c655926 /src/mesa/swrast
parenta5cc6155d425b1a94e576e0c87140557051b7505 (diff)
redo previous change in a more defensive way
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_aatritemp.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mesa/swrast/s_aatritemp.h b/src/mesa/swrast/s_aatritemp.h
index df68093292..64da824bed 100644
--- a/src/mesa/swrast/s_aatritemp.h
+++ b/src/mesa/swrast/s_aatritemp.h
@@ -1,4 +1,4 @@
-/* $Id: s_aatritemp.h,v 1.12 2001/05/10 17:55:54 brianp Exp $ */
+/* $Id: s_aatritemp.h,v 1.13 2001/05/10 18:01:19 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -321,10 +321,11 @@
coverage = compute_coveragef(pMin, pMid, pMax, ix, iy);
}
- n = (GLuint) ix - (GLuint) startX;
- if (n == 0)
+ if (ix <= startX)
continue;
+ n = (GLuint) ix - (GLuint) startX;
+
#ifdef DO_MULTITEX
# ifdef DO_SPEC
_mesa_write_multitexture_span(ctx, n, startX, iy, z, fog,
@@ -442,10 +443,11 @@
coverage = compute_coveragef(pMin, pMax, pMid, ix, iy);
}
- n = (GLuint) startX - (GLuint) ix;
- if (n == 0)
+ if (startX <= ix)
continue;
+ n = (GLuint) startX - (GLuint) ix;
+
left = ix + 1;
#ifdef DO_MULTITEX
{