diff options
author | Brian Paul <[email protected]> | 2001-05-10 17:55:54 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-05-10 17:55:54 +0000 |
commit | a5cc6155d425b1a94e576e0c87140557051b7505 (patch) | |
tree | 80b5f6832fc2d6501a447d4c1c16007e620d0604 /src | |
parent | dbed2027444338dc09fc102d6f4bd5c707c238d7 (diff) |
added check for zero-length spans, avoids potential problems later
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/swrast/s_aatritemp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_aatritemp.h b/src/mesa/swrast/s_aatritemp.h index 4b921650976..df680932922 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.11 2001/05/07 16:01:59 brianp Exp $ */ +/* $Id: s_aatritemp.h,v 1.12 2001/05/10 17:55:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -322,6 +322,9 @@ } n = (GLuint) ix - (GLuint) startX; + if (n == 0) + continue; + #ifdef DO_MULTITEX # ifdef DO_SPEC _mesa_write_multitexture_span(ctx, n, startX, iy, z, fog, @@ -440,6 +443,9 @@ } n = (GLuint) startX - (GLuint) ix; + if (n == 0) + continue; + left = ix + 1; #ifdef DO_MULTITEX { |