added check for zero-length spans, avoids potential problems later
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 10 May 2001 17:55:54 +0000 (17:55 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 10 May 2001 17:55:54 +0000 (17:55 +0000)
src/mesa/swrast/s_aatritemp.h

index 4b9216509762237b6783f945f616042027bcc4ec..df680932922e7e8860c5e7cdec59af002fec4cfd 100644 (file)
@@ -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
          }
 
          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,
          }
 
          n = (GLuint) startX - (GLuint) ix;
+         if (n == 0)
+            continue;
+
          left = ix + 1;
 #ifdef DO_MULTITEX
          {